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"
1110 // non-isolate-independent code. In many cases it might be cheaper than
1121 // non-isolate-independent code. In many cases it might be cheaper than
1242 // this code to load another value which may need all 3 instructions.
2293 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2294 // beq is used here to make the code patchable. Otherwise b should
2315 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2318 // bne is used here to make the code patchable. Otherwise we
2340 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2341 // No code needs to be emitted.
2358 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2379 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2380 // No code needs to be emitted.
2397 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2420 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2421 // No code needs to be emitted.
2438 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2459 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2460 // No code needs to be emitted.
2462 // No code needs to be emitted.
2474 if (rk.is_reg() && rj.code() == rk.rm().code()) {
2564 void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode,
2576 isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
2580 int32_t code_target_index = AddCodeTarget(code);
2587 /*int offset = code->builtin_index() * kSystemPointerSize +
2604 Jump(static_cast<intptr_t>(code.address()), rmode, cc_always, rj, rk);
2613 // Note: To call gcc-compiled C code on loonarch, you must call through t[0-8].
2663 void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
2673 isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
2678 int32_t code_target_index = AddCodeTarget(code);
2688 /*int offset = code->builtin_index() * kSystemPointerSize +
2706 DCHECK(code->IsExecutable());
2707 Call(code.address(), rmode, cc_always, rj, rk);
2764 // Note that this assumes the caller code (i.e. the Code object currently
2772 // instruction past the real call into C code (the jirl)), and push it.
2909 // Adjust this code if not the case.
3110 // We call indirectly through the code field in the function to
3113 Register code = kJavaScriptCallCodeStartRegister;
3114 Ld_d(code, FieldMemOperand(function, JSFunction::kCodeOffset));
3117 CallCodeObject(code);
3120 JumpCodeObject(code);
3306 // should remove this need and make the runtime routine entry code
3310 Handle<Code> code =
3312 Call(code, RelocInfo::CODE_TARGET);
3328 Handle<Code> code = CodeFactory::CEntry(isolate(), 1, SaveFPRegsMode::kIgnore,
3330 Jump(code, RelocInfo::CODE_TARGET, al, zero_reg, Operand(zero_reg));
3424 // We don't actually want to generate a pile of code for this, so just
3433 // If the calling code cares about the exact number of
4008 // See x64 code for reasoning about how to address the isolate data fields.
4068 int code = config->GetAllocatableGeneralCode(i);
4069 Register candidate = Register::from_code(code);
4098 // builtin code (which will later be embedded into the binary) or compiling
4099 // user JS code at runtime.
4100 // * Builtin code runs in --jitless mode and thus must not call into on-heap
4104 // targets are usually generated code and not builtin Code objects.