Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
58 void Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(Handle<Code> code) {
59 Isolate* isolate = code->GetIsolate();
62 // Compute the size of relocation information needed for the code
65 Address prev_reloc_address = code->instruction_start();
66 Address code_start_address = code->instruction_start();
67 SafepointTable table(*code);
74 // The gap code is needed to get to the state expected at the
94 int reloc_length = code->relocation_info()->length();
111 code->relocation_info()->GetDataStartAddress(),
128 // Replace relocation information on the code object.
129 code->set_relocation_info(*new_reloc);
141 // Get the optimized code.
142 Code* code = function->code();
143 Address code_start_address = code->instruction_start();
145 // We will overwrite the code's relocation info in-place. Relocation info
149 ByteArray* reloc_info = code->relocation_info();
156 // existing code will not be used again (we zap it in debug builds).
157 SafepointTable table(code);
167 // The gap code is needed to get to the state expected at the bailout.
186 code_start_address + code->safepoint_table_offset());
190 memmove(code->relocation_start(), reloc_info_writer.pos(), new_reloc_size);
202 // Add the deoptimizing code to the list.
203 DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
208 // Set the code for the function to non-optimized version.
209 function->ReplaceCode(function->shared()->code());
217 code->PrintLn();
225 Code* check_code,
226 Code* replacement_code) {
230 // The stack check code matches the pattern:
238 // We will patch away the branch so the code is:
257 Code* check_code,
258 Code* replacement_code) {
415 code(), input_->GetRegister(ebp.code()));
416 output_[0]->SetRegister(esi.code(), input_->GetRegister(esi.code()));
423 Code* continuation =
479 input_->GetRegister(ebp.code()) - (2 * kPointerSize) - height_in_bytes;
502 // function code and AST id of the bailout.
530 ASSERT(!is_bottommost || input_->GetRegister(ebp.code()) == fp_value);
532 if (is_topmost) output_frame->SetRegister(ebp.code(), fp_value);
549 if (is_topmost) output_frame->SetRegister(esi.code(), value);
576 Code* non_optimized_code = function->shared()->code();
592 Code* continuation = (bailout_type_ == EAGER)
631 // Get the address of the location in the code object if possible
649 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0.