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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 bool NeedsEagerFrame() const { | 81 bool NeedsEagerFrame() const { |
82 return GetStackSlotCount() > 0 || | 82 return GetStackSlotCount() > 0 || |
83 info()->is_non_deferred_calling() || | 83 info()->is_non_deferred_calling() || |
84 !info()->IsStub(); | 84 !info()->IsStub(); |
85 } | 85 } |
86 bool NeedsDeferredFrame() const { | 86 bool NeedsDeferredFrame() const { |
87 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 87 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
88 } | 88 } |
89 | 89 |
| 90 RAStatus GetRAState() const { |
| 91 return frame_is_built_ ? kRAHasBeenSaved : kRAHasNotBeenSaved; |
| 92 } |
| 93 |
90 // Support for converting LOperands to assembler types. | 94 // Support for converting LOperands to assembler types. |
91 // LOperand must be a register. | 95 // LOperand must be a register. |
92 Register ToRegister(LOperand* op) const; | 96 Register ToRegister(LOperand* op) const; |
93 | 97 |
94 // LOperand is loaded into scratch, unless already a register. | 98 // LOperand is loaded into scratch, unless already a register. |
95 Register EmitLoadRegister(LOperand* op, Register scratch); | 99 Register EmitLoadRegister(LOperand* op, Register scratch); |
96 | 100 |
97 // LOperand must be a double register. | 101 // LOperand must be a double register. |
98 DoubleRegister ToDoubleRegister(LOperand* op) const; | 102 DoubleRegister ToDoubleRegister(LOperand* op) const; |
99 | 103 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 LCodeGen* codegen_; | 506 LCodeGen* codegen_; |
503 Label entry_; | 507 Label entry_; |
504 Label exit_; | 508 Label exit_; |
505 Label* external_exit_; | 509 Label* external_exit_; |
506 int instruction_index_; | 510 int instruction_index_; |
507 }; | 511 }; |
508 | 512 |
509 } } // namespace v8::internal | 513 } } // namespace v8::internal |
510 | 514 |
511 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 515 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |