| 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 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 7 | 7 |
| 8 #include "ia32/lithium-ia32.h" | 8 #include "ia32/lithium-ia32.h" |
| 9 | 9 |
| 10 #include "checks.h" | 10 #include "checks.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 stack_depth_--; | 429 stack_depth_--; |
| 430 } | 430 } |
| 431 void push(X87Register reg) { | 431 void push(X87Register reg) { |
| 432 ASSERT(is_mutable_); | 432 ASSERT(is_mutable_); |
| 433 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); | 433 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); |
| 434 stack_[stack_depth_] = reg; | 434 stack_[stack_depth_] = reg; |
| 435 stack_depth_++; | 435 stack_depth_++; |
| 436 } | 436 } |
| 437 | 437 |
| 438 MacroAssembler* masm() const { return masm_; } | 438 MacroAssembler* masm() const { return masm_; } |
| 439 Isolate* isolate() const { return masm_->isolate(); } |
| 439 | 440 |
| 440 private: | 441 private: |
| 441 int ArrayIndex(X87Register reg); | 442 int ArrayIndex(X87Register reg); |
| 442 int st2idx(int pos); | 443 int st2idx(int pos); |
| 443 | 444 |
| 444 X87Register stack_[X87Register::kNumAllocatableRegisters]; | 445 X87Register stack_[X87Register::kNumAllocatableRegisters]; |
| 445 int stack_depth_; | 446 int stack_depth_; |
| 446 bool is_mutable_; | 447 bool is_mutable_; |
| 447 MacroAssembler* masm_; | 448 MacroAssembler* masm_; |
| 448 }; | 449 }; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 Label exit_; | 516 Label exit_; |
| 516 Label* external_exit_; | 517 Label* external_exit_; |
| 517 Label done_; | 518 Label done_; |
| 518 int instruction_index_; | 519 int instruction_index_; |
| 519 LCodeGen::X87Stack x87_stack_; | 520 LCodeGen::X87Stack x87_stack_; |
| 520 }; | 521 }; |
| 521 | 522 |
| 522 } } // namespace v8::internal | 523 } } // namespace v8::internal |
| 523 | 524 |
| 524 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 525 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |