Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
13 #include "src/codegen/code-factory.h"
29 #include "src/wasm/wasm-code-manager.h"
171 // Clobber clobbered input registers when running with the debug-code flag
326 // Clobber clobbered registers when running with the debug-code flag
1526 // non-isolate-independent code. In many cases it might be cheaper than
1537 // non-isolate-independent code. In many cases it might be cheaper than
1893 // this code to load another value which may need all 4 instructions.
2655 FPURegister src_reg = FPURegister::from_code(src.code());
2664 FPURegister src_reg = FPURegister::from_code(src.code());
3521 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3522 // Pre R6 beq is used here to make the code patchable. Otherwise bc
3539 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3540 // Pre R6 bne is used here to make the code patchable. Otherwise we
3560 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3561 break; // No code needs to be emitted.
3578 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3597 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3598 break; // No code needs to be emitted.
3615 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3636 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3637 break; // No code needs to be emitted.
3654 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3673 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3674 break; // No code needs to be emitted.
3680 break; // No code needs to be emitted.
3690 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3824 return true; // No code needs to be emitted.
4001 if (rs.code() == rt.rm().code()) {
4002 break; // No code needs to be emitted.
4019 if (rs.code() == rt.rm().code()) {
4038 if (rs.code() == rt.rm().code()) {
4039 break; // No code needs to be emitted.
4056 if (rs.code() == rt.rm().code()) {
4296 void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode,
4303 IndirectLoadConstant(t9, code);
4309 if (isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
4320 Jump(static_cast<intptr_t>(code.address()), rmode, cond, rs, rt, bd);
4328 // Note: To call gcc-compiled C code on mips, you must call through t9.
4375 void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
4381 IndirectLoadConstant(t9, code);
4387 if (isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
4399 DCHECK(code->IsExecutable());
4400 Call(code.address(), rmode, cond, rs, rt, bd);
4461 // Note that this assumes the caller code (i.e. the Code object currently
4473 // instruction past the real call into C code (the jalr(t9)), and push it.
4721 // Adjust this code if not the case.
4997 // We call indirectly through the code field in the function to
5000 Register code = kJavaScriptCallCodeStartRegister;
5001 Ld(code, FieldMemOperand(function, JSFunction::kCodeOffset));
5004 Daddu(code, code, Operand(Code::kHeaderSize - kHeapObjectTag));
5005 Call(code);
5008 Daddu(code, code, Operand(Code::kHeaderSize - kHeapObjectTag));
5009 Jump(code);
5181 // should remove this need and make the runtime routine entry code
5185 Handle<Code> code =
5187 Call(code, RelocInfo::CODE_TARGET);
5204 Handle<Code> code = CodeFactory::CEntry(isolate(), 1, SaveFPRegsMode::kIgnore,
5206 Jump(code, RelocInfo::CODE_TARGET, al, zero_reg, Operand(zero_reg), bd);
5301 // We don't actually want to generate a pile of code for this, so just
5310 // If the calling code cares about the exact number of
6023 // See x64 code for reasoning about how to address the isolate data fields.
6080 int code = config->GetAllocatableGeneralCode(i);
6081 Register candidate = Register::from_code(code);
6090 // register ra, which is needed while computing the code start address.
6125 // builtin code (which will later be embedded into the binary) or compiling
6126 // user JS code at runtime.
6127 // * Builtin code runs in --jitless mode and thus must not call into on-heap
6131 // targets are usually generated code and not builtin Code objects.