| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 kPointerSize; | 221 kPointerSize; |
| 222 DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 222 DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == |
| 223 JavaScriptFrameConstants::kLocal0Offset); | 223 JavaScriptFrameConstants::kLocal0Offset); |
| 224 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 224 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); |
| 225 return (alignment_state == kAlignmentPaddingPushed); | 225 return (alignment_state == kAlignmentPaddingPushed); |
| 226 } | 226 } |
| 227 | 227 |
| 228 | 228 |
| 229 #define __ masm()-> | 229 #define __ masm()-> |
| 230 | 230 |
| 231 void Deoptimizer::EntryGenerator::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 = | 237 const int kDoubleRegsSize = |
| 238 kDoubleSize * X87Register::kMaxNumAllocatableRegisters; | 238 kDoubleSize * X87Register::kMaxNumAllocatableRegisters; |
| 239 | 239 |
| 240 // Reserve space for x87 fp registers. | 240 // Reserve space for x87 fp registers. |
| 241 __ sub(esp, Immediate(kDoubleRegsSize)); | 241 __ sub(esp, Immediate(kDoubleRegsSize)); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 UNREACHABLE(); | 466 UNREACHABLE(); |
| 467 } | 467 } |
| 468 | 468 |
| 469 | 469 |
| 470 #undef __ | 470 #undef __ |
| 471 | 471 |
| 472 | 472 |
| 473 } } // namespace v8::internal | 473 } } // namespace v8::internal |
| 474 | 474 |
| 475 #endif // V8_TARGET_ARCH_X87 | 475 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |