Home | History | Annotate | Download | only in mips

Lines Matching refs:Code

6 //     * Redistributions of source code must retain the above copyright
51 // Get the optimized code.
52 Code* code = function->code();
53 Address code_start_address = code->instruction_start();
56 // code patching below, and is not needed any more.
57 code->InvalidateRelocation();
62 DeoptimizationInputData::cast(code->deoptimization_data());
79 ASSERT(call_address + patch_size() <= code->instruction_end());
86 Isolate* isolate = code->GetIsolate();
88 // Add the deoptimizing code to the list.
89 DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
95 // Tell collector to treat this code object in a special way and
97 isolate->heap()->mark_compact_collector()->InvalidateCode(code);
99 // Set the code for the function to non-optimized version.
100 function->ReplaceCode(function->shared()->code());
108 code->PrintLn();
115 void Deoptimizer::PatchStackCheckCodeAt(Code* unoptimized_code,
117 Code* check_code,
118 Code* replacement_code) {
137 // with the entry address of the replacement code.
144 // We patched the code to the following form:
158 void Deoptimizer::RevertStackCheckCodeAt(Code* unoptimized_code,
160 Code* check_code,
161 Code* replacement_code) {
177 // pair) with the entry address of the normal stack-check code.
330 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code()));
331 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code()));
338 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR);
439 Code* adaptor_trampoline =
451 Code* construct_stub = builtins->builtin(Builtins::kJSConstructStubGeneric);
529 PrintF(" 0x%08x: [top + %d] <- 0x%08x ; code object\n",
570 // This code is very similar to ia32/arm code, but relies on register names
610 input_->GetRegister(fp.code()) - (2 * kPointerSize) - height_in_bytes;
633 // function code and AST id of the bailout.
661 ASSERT(!is_bottommost || input_->GetRegister(fp.code()) == fp_value);
664 output_frame->SetRegister(fp.code(), fp_value);
683 if (is_topmost) output_frame->SetRegister(cp.code(), value);
710 Code* non_optimized_code = function->shared()->code();
727 Code* continuation = (bailout_type_ == EAGER)
743 input_->SetRegister(sp.code(), reinterpret_cast<intptr_t>(frame->sp()));
744 input_->SetRegister(fp.code(), reinterpret_cast<intptr_t>(frame->fp()));
759 // This code tries to be close to ia32 code so that any changes can be
800 // Get the address of the location in the code object if possible (a3) (return
825 // a3: code address or 0 already loaded.
977 // This code is always reached by calling Jump, which puts the target (label
986 // Pad the rest of the code.