| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 #define __ masm()-> | 229 #define __ masm()-> |
| 230 | 230 |
| 231 void Deoptimizer::TableEntryGenerator::Generate() { | 231 void Deoptimizer::TableEntryGenerator::Generate() { |
| 232 GeneratePrologue(); | 232 GeneratePrologue(); |
| 233 | 233 |
| 234 // Save all general purpose registers before messing with them. | 234 // Save all general purpose registers before messing with them. |
| 235 const int kNumberOfRegisters = Register::kNumRegisters; | 235 const int kNumberOfRegisters = Register::kNumRegisters; |
| 236 | 236 |
| 237 const int kDoubleRegsSize = kDoubleSize * XMMRegister::kMaxNumRegisters; | 237 const int kDoubleRegsSize = kDoubleSize * XMMRegister::kMaxNumRegisters; |
| 238 __ sub(esp, Immediate(kDoubleRegsSize)); | 238 __ sub(esp, Immediate(kDoubleRegsSize)); |
| 239 const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); | 239 const RegisterConfiguration* config = |
| 240 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT); |
| 240 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { | 241 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { |
| 241 int code = config->GetAllocatableDoubleCode(i); | 242 int code = config->GetAllocatableDoubleCode(i); |
| 242 XMMRegister xmm_reg = XMMRegister::from_code(code); | 243 XMMRegister xmm_reg = XMMRegister::from_code(code); |
| 243 int offset = code * kDoubleSize; | 244 int offset = code * kDoubleSize; |
| 244 __ movsd(Operand(esp, offset), xmm_reg); | 245 __ movsd(Operand(esp, offset), xmm_reg); |
| 245 } | 246 } |
| 246 | 247 |
| 247 __ pushad(); | 248 __ pushad(); |
| 248 | 249 |
| 249 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); | 250 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 432 } |
| 432 | 433 |
| 433 | 434 |
| 434 #undef __ | 435 #undef __ |
| 435 | 436 |
| 436 | 437 |
| 437 } // namespace internal | 438 } // namespace internal |
| 438 } // namespace v8 | 439 } // namespace v8 |
| 439 | 440 |
| 440 #endif // V8_TARGET_ARCH_IA32 | 441 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |