Lines Matching defs:code

2 // Use of this source code is governed by a BSD-style license that can be
8 #include "src/codegen/code-factory.h"
331 static void AssertCodeIsBaseline(MacroAssembler* masm, Register code,
333 DCHECK(!AreAliased(code, scratch));
334 // Verify that the code kind is baseline code via the CodeKind.
335 __ Ld_d(scratch, FieldMemOperand(code, Code::kFlagsOffset));
654 // returns control to the code after the bal(&invoke) above, which
785 // Invoke the code.
814 // Store code entry in the closure.
874 // If the optimized code is cleared, go to runtime to update the optimization
879 // Check if the optimized code is marked for deopt. If it is, call the
887 // Optimized code is good, get it into the closure and link the closure into
888 // the optimized functions list, then tail call the optimized code.
897 // Optimized code slot contains deoptimized code or code is cleared and
898 // optimized code marker isn't updated. Evict the code, update the marker
899 // and re-enter the closure's code.
940 // will restore the original bytecode. In order to simplify the code, we have
1004 // is optimized code or a tiering state that needs to be processed.
1026 // Check if optimized code marker is available
1051 // Reset code age and the OSR state (optimized to a single write).
1124 // We'll use the bytecode for both code age/OSR resetting, and pushing onto
1131 // Baseline code frames store the feedback vector where interpreter would
1145 // code.
1201 // Generate code for entering a JS function with the interpreter.
1244 // Check if feedback vector is valid. If valid, check for optimized code
1251 // is optimized code or an tiering state, call that instead.
1256 // Check if the optimized code slot is not empty or has a tiering state.
1274 // MANUAL indicates that the scope shouldn't actually generate code to set up
1425 // Load the baseline code into the closure.
1437 // Unreachable code.
1442 // Unreachable code.
1511 // Unreachable code.
1572 // Unreachable code.
1639 // Unreachable code.
1687 // If the code deoptimizes during the implicit function entry stack interrupt
1726 int code = config->GetAllocatableGeneralCode(i);
1727 __ Pop(Register::from_code(code));
1728 if (java_script_builtin && code == kJavaScriptCallArgCountRegister.code()) {
1729 __ SmiUntag(Register::from_code(code));
1785 DCHECK_EQ(kInterpreterAccumulatorRegister.code(), a0.code());
1806 // If the code object is null, just return to the caller.
1815 // Load deoptimization data from the code object.
1816 // <deopt_data> = <code>[#deoptimization_data_offset]
2094 Handle<Code> code) {
2156 __ Jump(code, RelocInfo::CODE_TARGET);
2165 Handle<Code> code) {
2237 // Tail-call to the {code} handler.
2238 __ Jump(code, RelocInfo::CODE_TARGET);
2811 // We are calling compiled C/C++ code. a0 and a1 hold our two arguments. We
3366 __ Ld_d(ra, MemOperand(sp, 0)); // Return to calling code.
3383 // This code tries to be close to ia32 code so that any changes can be
3402 int code = config->GetAllocatableDoubleCode(i);
3403 const DoubleRegister fpu_reg = DoubleRegister::from_code(code);
3404 int offset = code * kDoubleSize;
3424 // Get the address of the location in the code object (a2) (return
3442 // a2: code address or 0 already loaded.
3474 int code = config->GetAllocatableDoubleCode(i);
3475 int dst_offset = code * kDoubleSize + double_regs_offset;
3476 int src_offset = code * kDoubleSize + kNumberOfRegisters * kPointerSize;
3542 int code = config->GetAllocatableDoubleCode(i);
3543 const DoubleRegister fpu_reg = DoubleRegister::from_code(code);
3544 int src_offset = code * kDoubleSize + double_regs_offset;
3589 // bytecode. If there is baseline code on the shared function info, converts an
3591 // code. Otherwise execution continues with bytecode.
3609 // Check if we have baseline code. For OSR entry it is safe to assume we
3610 // always have baseline code.
3616 // Start with bytecode as there is no baseline code.
3623 // Start with baseline code.
3668 // If the code deoptimizes during the implicit function entry stack interrupt
3739 // Retry from the start after installing baseline code.