OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 if (!stack_[i].is(other.stack_[i])) return false; | 464 if (!stack_[i].is(other.stack_[i])) return false; |
465 } | 465 } |
466 return true; | 466 return true; |
467 } | 467 } |
468 bool Contains(X87Register reg); | 468 bool Contains(X87Register reg); |
469 void Fxch(X87Register reg, int other_slot = 0); | 469 void Fxch(X87Register reg, int other_slot = 0); |
470 void Free(X87Register reg); | 470 void Free(X87Register reg); |
471 void PrepareToWrite(X87Register reg); | 471 void PrepareToWrite(X87Register reg); |
472 void CommitWrite(X87Register reg); | 472 void CommitWrite(X87Register reg); |
473 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); | 473 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); |
| 474 void LeavingBlock(int current_block_id, LGoto* goto_instr); |
474 int depth() const { return stack_depth_; } | 475 int depth() const { return stack_depth_; } |
475 void pop() { | 476 void pop() { |
476 ASSERT(is_mutable_); | 477 ASSERT(is_mutable_); |
477 stack_depth_--; | 478 stack_depth_--; |
478 } | 479 } |
479 void push(X87Register reg) { | 480 void push(X87Register reg) { |
480 ASSERT(is_mutable_); | 481 ASSERT(is_mutable_); |
481 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); | 482 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); |
482 stack_[stack_depth_] = reg; | 483 stack_[stack_depth_] = reg; |
483 stack_depth_++; | 484 stack_depth_++; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 Label exit_; | 566 Label exit_; |
566 Label* external_exit_; | 567 Label* external_exit_; |
567 Label done_; | 568 Label done_; |
568 int instruction_index_; | 569 int instruction_index_; |
569 LCodeGen::X87Stack x87_stack_; | 570 LCodeGen::X87Stack x87_stack_; |
570 }; | 571 }; |
571 | 572 |
572 } } // namespace v8::internal | 573 } } // namespace v8::internal |
573 | 574 |
574 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 575 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |