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

Side by Side Diff: src/ia32/deoptimizer-ia32.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/ia32/code-stubs-ia32.h ('k') | src/mips/assembler-mips.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_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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #define __ masm()-> 189 #define __ masm()->
190 190
191 void Deoptimizer::TableEntryGenerator::Generate() { 191 void Deoptimizer::TableEntryGenerator::Generate() {
192 GeneratePrologue(); 192 GeneratePrologue();
193 193
194 // Save all general purpose registers before messing with them. 194 // Save all general purpose registers before messing with them.
195 const int kNumberOfRegisters = Register::kNumRegisters; 195 const int kNumberOfRegisters = Register::kNumRegisters;
196 196
197 const int kDoubleRegsSize = kDoubleSize * XMMRegister::kMaxNumRegisters; 197 const int kDoubleRegsSize = kDoubleSize * XMMRegister::kMaxNumRegisters;
198 __ sub(esp, Immediate(kDoubleRegsSize)); 198 __ sub(esp, Immediate(kDoubleRegsSize));
199 const RegisterConfiguration* config = 199 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft();
200 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
201 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { 200 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) {
202 int code = config->GetAllocatableDoubleCode(i); 201 int code = config->GetAllocatableDoubleCode(i);
203 XMMRegister xmm_reg = XMMRegister::from_code(code); 202 XMMRegister xmm_reg = XMMRegister::from_code(code);
204 int offset = code * kDoubleSize; 203 int offset = code * kDoubleSize;
205 __ movsd(Operand(esp, offset), xmm_reg); 204 __ movsd(Operand(esp, offset), xmm_reg);
206 } 205 }
207 206
208 __ pushad(); 207 __ pushad();
209 208
210 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); 209 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate());
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698