Lines Matching refs:code
6 // * Redistributions of source code must retain the above copyright
55 // Get the optimized code.
56 Code* code = function->code();
59 // code patching below, and is not needed any more.
60 code->InvalidateRelocation();
65 // before the safepoint table (space was allocated there when the Code
68 Address instruction_start = function->code()->instruction_start();
73 DeoptimizationInputData::cast(code->deoptimization_data());
84 ASSERT(call_address + patch_size() <= code->instruction_end());
90 Isolate* isolate = code->GetIsolate();
92 // Add the deoptimizing code to the list.
93 DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
99 // Tell collector to treat this code object in a special way and
101 isolate->heap()->mark_compact_collector()->InvalidateCode(code);
103 // Set the code for the function to non-optimized version.
104 function->ReplaceCode(function->shared()->code());
114 void Deoptimizer::PatchStackCheckCodeAt(Code* unoptimized_code,
116 Code* check_code,
117 Code* replacement_code) {
121 // The stack check code matches the pattern:
129 // We will patch away the branch so the code is:
151 void Deoptimizer::RevertStackCheckCodeAt(Code* unoptimized_code,
153 Code* check_code,
154 Code* replacement_code) {
317 output_[0]->SetRegister(rbp.code(), input_->GetRegister(rbp.code()));
318 output_[0]->SetRegister(rsi.code(), input_->GetRegister(rsi.code()));
325 Code* continuation =
432 Code* adaptor_trampoline =
444 Code* construct_stub = builtins->builtin(Builtins::kJSConstructStubGeneric);
527 V8PRIxPTR " ; code object\n",
598 input_->GetRegister(rbp.code()) - (2 * kPointerSize) - height_in_bytes;
621 // function code and AST id of the bailout.
650 ASSERT(!is_bottommost || input_->GetRegister(rbp.code()) == fp_value);
652 if (is_topmost) output_frame->SetRegister(rbp.code(), fp_value);
671 if (is_topmost) output_frame->SetRegister(rsi.code(), value);
700 Code* non_optimized_code = function->shared()->code();
715 Code* continuation = (bailout_type_ == EAGER)
731 input_->SetRegister(rsp.code(), reinterpret_cast<intptr_t>(frame->sp()));
732 input_->SetRegister(rbp.code(), reinterpret_cast<intptr_t>(frame->fp()));
796 // Get the address of the location in the code object if possible