Lines Matching refs: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"
175 // Clobber clobbered input registers when running with the debug-code flag
331 // Clobber clobbered registers when running with the debug-code flag
1228 FPURegister nextfpreg = FPURegister::from_code(fd.code() + 1);
1256 FPURegister nextfpreg = FPURegister::from_code(fd.code() + 1);
1316 // non-isolate-independent code. In many cases it might be cheaper than
1327 // non-isolate-independent code. In many cases it might be cheaper than
1369 // this code to load another value which may need 2 instructions to load.
2516 // Tests an FP condition code and then conditionally move rs to rd.
2523 // than test its cc (floating point condition code) bit (for cc = 0, it is
2542 // Tests an FP condition code and then conditionally move rs to rd.
2549 // than test its cc (floating point condition code) bit (for cc = 0, it is
2881 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2882 // Pre R6 beq is used here to make the code patchable. Otherwise bc
2899 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2900 // Pre R6 bne is used here to make the code patchable. Otherwise we
2920 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2921 break; // No code needs to be emitted.
2938 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2957 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2958 break; // No code needs to be emitted.
2975 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2996 if (rt.is_reg() && rs.code() == rt.rm().code()) {
2997 break; // No code needs to be emitted.
3014 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3033 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3034 break; // No code needs to be emitted.
3040 break; // No code needs to be emitted.
3050 if (rt.is_reg() && rs.code() == rt.rm().code()) {
3183 return true; // No code needs to be emitted.
3358 if (rs.code() == rt.rm().code()) {
3359 break; // No code needs to be emitted.
3376 if (rs.code() == rt.rm().code()) {
3395 if (rs.code() == rt.rm().code()) {
3396 break; // No code needs to be emitted.
3413 if (rs.code() == rt.rm().code()) {
3730 void TurboAssembler::Jump(Handle<Code> code, RelocInfo::Mode rmode,
3738 isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
3742 int32_t code_target_index = AddCodeTarget(code);
3755 IndirectLoadConstant(t9, code);
3768 Jump(static_cast<intptr_t>(code.address()), rmode, cond, rs, rt, bd);
3790 // Note: To call gcc-compiled C code on mips, you must call through t9.
3820 // Note: To call gcc-compiled C code on mips, you must call through t9.
3872 void TurboAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
3879 isolate()->builtins()->IsBuiltinHandle(code, &builtin) &&
3883 int32_t code_target_index = AddCodeTarget(code);
3894 IndirectLoadConstant(t9, code);
3908 DCHECK(code->IsExecutable());
3909 Call(code.address(), rmode, cond, rs, rt, bd);
3971 // Note that this assumes the caller code (i.e. the Code object currently
3979 // instruction past the real call into C code (the jalr(t9)), and push it.
4197 // Adjust this code if not the case.
4469 // We call indirectly through the code field in the function to
4472 Register code = kJavaScriptCallCodeStartRegister;
4473 lw(code, FieldMemOperand(function, JSFunction::kCodeOffset));
4476 Addu(code, code, Code::kHeaderSize - kHeapObjectTag);
4477 Call(code);
4480 Addu(code, code, Code::kHeaderSize - kHeapObjectTag);
4481 Jump(code);
4653 // should remove this need and make the runtime routine entry code
4657 Handle<Code> code =
4659 Call(code, RelocInfo::CODE_TARGET);
4676 Handle<Code> code = CodeFactory::CEntry(isolate(), 1, SaveFPRegsMode::kIgnore,
4678 Jump(code, RelocInfo::CODE_TARGET, al, zero_reg, Operand(zero_reg), bd);
4767 // We don't actually want to generate a pile of code for this, so just
4776 // If the calling code cares about the exact number of
5400 // Position independent code
5480 // See x64 code for reasoning about how to address the isolate data fields.
5537 int code = config->GetAllocatableGeneralCode(i);
5538 Register candidate = Register::from_code(code);
5547 // register ra, which is needed while computing the code start address.
5582 // builtin code (which will later be embedded into the binary) or compiling
5583 // user JS code at runtime.
5584 // * Builtin code runs in --jitless mode and thus must not call into on-heap
5588 // targets are usually generated code and not builtin Code objects.