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

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

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 5 months 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/x87/assembler-x87.h ('k') | test/cctest/compiler/test-gap-resolver.cc » ('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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // frame descriptor pointer. 270 // frame descriptor pointer.
271 __ mov(ebx, Operand(eax, Deoptimizer::input_offset())); 271 __ mov(ebx, Operand(eax, Deoptimizer::input_offset()));
272 272
273 // Fill in the input registers. 273 // Fill in the input registers.
274 for (int i = kNumberOfRegisters - 1; i >= 0; i--) { 274 for (int i = kNumberOfRegisters - 1; i >= 0; i--) {
275 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); 275 int offset = (i * kPointerSize) + FrameDescription::registers_offset();
276 __ pop(Operand(ebx, offset)); 276 __ pop(Operand(ebx, offset));
277 } 277 }
278 278
279 int double_regs_offset = FrameDescription::double_registers_offset(); 279 int double_regs_offset = FrameDescription::double_registers_offset();
280 const RegisterConfiguration* config = 280 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft();
281 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
282 // Fill in the double input registers. 281 // Fill in the double input registers.
283 for (int i = 0; i < X87Register::kMaxNumAllocatableRegisters; ++i) { 282 for (int i = 0; i < X87Register::kMaxNumAllocatableRegisters; ++i) {
284 int code = config->GetAllocatableDoubleCode(i); 283 int code = config->GetAllocatableDoubleCode(i);
285 int dst_offset = code * kDoubleSize + double_regs_offset; 284 int dst_offset = code * kDoubleSize + double_regs_offset;
286 int src_offset = code * kDoubleSize; 285 int src_offset = code * kDoubleSize;
287 __ fld_d(Operand(esp, src_offset)); 286 __ fld_d(Operand(esp, src_offset));
288 __ fstp_d(Operand(ebx, dst_offset)); 287 __ fstp_d(Operand(ebx, dst_offset));
289 } 288 }
290 289
291 // Clear FPU all exceptions. 290 // Clear FPU all exceptions.
(...skipping 131 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/x87/assembler-x87.h ('k') | test/cctest/compiler/test-gap-resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698