Home | History | Annotate | Download | only in ia32

Lines Matching refs:code

2 // Use of this source code is governed by a BSD-style license that can be
25 void Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(Handle<Code> code) {
26 Isolate* isolate = code->GetIsolate();
29 // Compute the size of relocation information needed for the code
34 DeoptimizationInputData::cast(code->deoptimization_data());
55 int reloc_length = code->relocation_info()->length();
72 code->relocation_info()->GetDataStartAddress(), reloc_length);
88 // Replace relocation information on the code object.
89 code->set_relocation_info(*new_reloc);
94 void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) {
95 Address code_start_address = code->instruction_start();
98 // Fail hard and early if we enter this code object again.
99 byte* pointer = code->FindCodeAgeSequence();
103 pointer = code->instruction_start();
109 DeoptimizationInputData::cast(code->deoptimization_data());
112 CodePatcher osr_patcher(isolate, code->instruction_start() + osr_offset,
118 // We will overwrite the code's relocation info in-place. Relocation info
122 ByteArray* reloc_info = code->relocation_info();
128 // existing code will not be used again (we zap it in debug builds).
132 DeoptimizationInputData::cast(code->deoptimization_data());
154 DCHECK(call_address + patch_size() <= code->instruction_end());
162 MemMove(code->relocation_start(), reloc_info_writer.pos(), new_reloc_length);
177 output_frame->SetRegister(eax.code(), params);
178 output_frame->SetRegister(ebx.code(), handler);
201 int code = config->GetAllocatableDoubleCode(i);
202 XMMRegister xmm_reg = XMMRegister::from_code(code);
203 int offset = code * kDoubleSize;
218 // Get the address of the location in the code object
237 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0.
259 int code = config->GetAllocatableDoubleCode(i);
260 int dst_offset = code * kDoubleSize + double_regs_offset;
261 int src_offset = code * kDoubleSize;
268 // and check that the generated code never deoptimizes with unbalanced stack.
333 int code = config->GetAllocatableDoubleCode(i);
334 XMMRegister xmm_reg = XMMRegister::from_code(code);
335 int src_offset = code * kDoubleSize + double_regs_offset;