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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 if (!stack_[i].is(other.stack_[i])) return false; | 461 if (!stack_[i].is(other.stack_[i])) return false; |
462 } | 462 } |
463 return true; | 463 return true; |
464 } | 464 } |
465 bool Contains(X87Register reg); | 465 bool Contains(X87Register reg); |
466 void Fxch(X87Register reg, int other_slot = 0); | 466 void Fxch(X87Register reg, int other_slot = 0); |
467 void Free(X87Register reg); | 467 void Free(X87Register reg); |
468 void PrepareToWrite(X87Register reg); | 468 void PrepareToWrite(X87Register reg); |
469 void CommitWrite(X87Register reg); | 469 void CommitWrite(X87Register reg); |
470 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); | 470 void FlushIfNecessary(LInstruction* instr, LCodeGen* cgen); |
| 471 void LeavingBlock(int current_block_id, LGoto* goto_instr); |
471 int depth() const { return stack_depth_; } | 472 int depth() const { return stack_depth_; } |
472 void pop() { | 473 void pop() { |
473 ASSERT(is_mutable_); | 474 ASSERT(is_mutable_); |
474 stack_depth_--; | 475 stack_depth_--; |
475 } | 476 } |
476 void push(X87Register reg) { | 477 void push(X87Register reg) { |
477 ASSERT(is_mutable_); | 478 ASSERT(is_mutable_); |
478 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); | 479 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); |
479 stack_[stack_depth_] = reg; | 480 stack_[stack_depth_] = reg; |
480 stack_depth_++; | 481 stack_depth_++; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 Label exit_; | 563 Label exit_; |
563 Label* external_exit_; | 564 Label* external_exit_; |
564 Label done_; | 565 Label done_; |
565 int instruction_index_; | 566 int instruction_index_; |
566 LCodeGen::X87Stack x87_stack_; | 567 LCodeGen::X87Stack x87_stack_; |
567 }; | 568 }; |
568 | 569 |
569 } } // namespace v8::internal | 570 } } // namespace v8::internal |
570 | 571 |
571 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 572 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |