Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: src/x87/deoptimizer-x87.cc

Issue 2504193002: [heap] Simplify adjusting of live bytes. (Closed)
Patch Set: fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-regexp.cc ('k') | test/cctest/heap/heap-tester.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime-regexp.cc ('k') | test/cctest/heap/heap-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698