OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/full-codegen/full-codegen.h" | 9 #include "src/full-codegen/full-codegen.h" |
10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 #endif | 157 #endif |
158 } | 158 } |
159 | 159 |
160 // Move the relocation info to the beginning of the byte array. | 160 // Move the relocation info to the beginning of the byte array. |
161 const int new_reloc_length = reloc_end_address - reloc_info_writer.pos(); | 161 const int new_reloc_length = reloc_end_address - reloc_info_writer.pos(); |
162 MemMove(code->relocation_start(), reloc_info_writer.pos(), new_reloc_length); | 162 MemMove(code->relocation_start(), reloc_info_writer.pos(), new_reloc_length); |
163 | 163 |
164 // Right trim the relocation info to free up remaining space. | 164 // Right trim the relocation info to free up remaining space. |
165 const int delta = reloc_info->length() - new_reloc_length; | 165 const int delta = reloc_info->length() - new_reloc_length; |
166 if (delta > 0) { | 166 if (delta > 0) { |
167 isolate->heap()->RightTrimFixedArray<Heap::SEQUENTIAL_TO_SWEEPER>( | 167 isolate->heap()->RightTrimFixedArray(reloc_info, delta); |
168 reloc_info, delta); | |
169 } | 168 } |
170 } | 169 } |
171 | 170 |
172 | 171 |
173 void Deoptimizer::SetPlatformCompiledStubRegisters( | 172 void Deoptimizer::SetPlatformCompiledStubRegisters( |
174 FrameDescription* output_frame, CodeStubDescriptor* descriptor) { | 173 FrameDescription* output_frame, CodeStubDescriptor* descriptor) { |
175 intptr_t handler = | 174 intptr_t handler = |
176 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); | 175 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); |
177 int params = descriptor->GetHandlerParameterCount(); | 176 int params = descriptor->GetHandlerParameterCount(); |
178 output_frame->SetRegister(eax.code(), params); | 177 output_frame->SetRegister(eax.code(), params); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 422 } |
424 | 423 |
425 | 424 |
426 #undef __ | 425 #undef __ |
427 | 426 |
428 | 427 |
429 } // namespace internal | 428 } // namespace internal |
430 } // namespace v8 | 429 } // namespace v8 |
431 | 430 |
432 #endif // V8_TARGET_ARCH_X87 | 431 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |