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_X87_LITHIUM_CODEGEN_X87_H_ | 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_ |
6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ | 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "src/x87/lithium-x87.h" | 9 #include "src/x87/lithium-x87.h" |
10 | 10 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 void Free(X87Register reg); | 401 void Free(X87Register reg); |
402 void PrepareToWrite(X87Register reg); | 402 void PrepareToWrite(X87Register reg); |
403 void CommitWrite(X87Register reg); | 403 void CommitWrite(X87Register reg); |
404 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); | 404 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); |
405 void LeavingBlock(int current_block_id, LGoto* goto_instr, LCodeGen* cgen); | 405 void LeavingBlock(int current_block_id, LGoto* goto_instr, LCodeGen* cgen); |
406 int depth() const { return stack_depth_; } | 406 int depth() const { return stack_depth_; } |
407 int GetLayout(); | 407 int GetLayout(); |
408 int st(X87Register reg) { return st2idx(ArrayIndex(reg)); } | 408 int st(X87Register reg) { return st2idx(ArrayIndex(reg)); } |
409 void pop() { | 409 void pop() { |
410 DCHECK(is_mutable_); | 410 DCHECK(is_mutable_); |
| 411 USE(is_mutable_); |
411 stack_depth_--; | 412 stack_depth_--; |
412 } | 413 } |
413 void push(X87Register reg) { | 414 void push(X87Register reg) { |
414 DCHECK(is_mutable_); | 415 DCHECK(is_mutable_); |
415 DCHECK(stack_depth_ < X87Register::kMaxNumAllocatableRegisters); | 416 DCHECK(stack_depth_ < X87Register::kMaxNumAllocatableRegisters); |
416 stack_[stack_depth_] = reg; | 417 stack_[stack_depth_] = reg; |
417 stack_depth_++; | 418 stack_depth_++; |
418 } | 419 } |
419 | 420 |
420 MacroAssembler* masm() const { return masm_; } | 421 MacroAssembler* masm() const { return masm_; } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 Label exit_; | 503 Label exit_; |
503 Label* external_exit_; | 504 Label* external_exit_; |
504 Label done_; | 505 Label done_; |
505 int instruction_index_; | 506 int instruction_index_; |
506 LCodeGen::X87Stack x87_stack_; | 507 LCodeGen::X87Stack x87_stack_; |
507 }; | 508 }; |
508 | 509 |
509 } } // namespace v8::internal | 510 } } // namespace v8::internal |
510 | 511 |
511 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ | 512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ |
OLD | NEW |