| 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_IA32 |    5 #if V8_TARGET_ARCH_IA32 | 
|    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/ia32/frames-ia32.h" |   10 #include "src/ia32/frames-ia32.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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  387 } |  386 } | 
|  388  |  387  | 
|  389  |  388  | 
|  390 #undef __ |  389 #undef __ | 
|  391  |  390  | 
|  392  |  391  | 
|  393 }  // namespace internal |  392 }  // namespace internal | 
|  394 }  // namespace v8 |  393 }  // namespace v8 | 
|  395  |  394  | 
|  396 #endif  // V8_TARGET_ARCH_IA32 |  395 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |