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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 |