| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 | 128 |
| 129 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 129 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
| 130 // There is no dynamic alignment padding on x64 in the input frame. | 130 // There is no dynamic alignment padding on x64 in the input frame. |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 | 134 |
| 135 #define __ masm()-> | 135 #define __ masm()-> |
| 136 | 136 |
| 137 void Deoptimizer::EntryGenerator::Generate() { | 137 void Deoptimizer::TableEntryGenerator::Generate() { |
| 138 GeneratePrologue(); | 138 GeneratePrologue(); |
| 139 | 139 |
| 140 // Save all general purpose registers before messing with them. | 140 // Save all general purpose registers before messing with them. |
| 141 const int kNumberOfRegisters = Register::kNumRegisters; | 141 const int kNumberOfRegisters = Register::kNumRegisters; |
| 142 | 142 |
| 143 const int kDoubleRegsSize = kDoubleSize * | 143 const int kDoubleRegsSize = kDoubleSize * |
| 144 XMMRegister::NumAllocatableRegisters(); | 144 XMMRegister::NumAllocatableRegisters(); |
| 145 __ subp(rsp, Immediate(kDoubleRegsSize)); | 145 __ subp(rsp, Immediate(kDoubleRegsSize)); |
| 146 | 146 |
| 147 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { | 147 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 UNREACHABLE(); | 350 UNREACHABLE(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 | 353 |
| 354 #undef __ | 354 #undef __ |
| 355 | 355 |
| 356 | 356 |
| 357 } } // namespace v8::internal | 357 } } // namespace v8::internal |
| 358 | 358 |
| 359 #endif // V8_TARGET_ARCH_X64 | 359 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |