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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 X87Register left, X87Register right, X87Register result); | 114 X87Register left, X87Register right, X87Register result); |
115 | 115 |
116 void X87LoadForUsage(X87Register reg); | 116 void X87LoadForUsage(X87Register reg); |
117 void X87LoadForUsage(X87Register reg1, X87Register reg2); | 117 void X87LoadForUsage(X87Register reg1, X87Register reg2); |
118 void X87PrepareToWrite(X87Register reg) { x87_stack_.PrepareToWrite(reg); } | 118 void X87PrepareToWrite(X87Register reg) { x87_stack_.PrepareToWrite(reg); } |
119 void X87CommitWrite(X87Register reg) { x87_stack_.CommitWrite(reg); } | 119 void X87CommitWrite(X87Register reg) { x87_stack_.CommitWrite(reg); } |
120 | 120 |
121 void X87Fxch(X87Register reg, int other_slot = 0) { | 121 void X87Fxch(X87Register reg, int other_slot = 0) { |
122 x87_stack_.Fxch(reg, other_slot); | 122 x87_stack_.Fxch(reg, other_slot); |
123 } | 123 } |
| 124 void X87Free(X87Register reg) { |
| 125 x87_stack_.Free(reg); |
| 126 } |
| 127 |
124 | 128 |
125 bool X87StackEmpty() { | 129 bool X87StackEmpty() { |
126 return x87_stack_.depth() == 0; | 130 return x87_stack_.depth() == 0; |
127 } | 131 } |
128 | 132 |
129 Handle<Object> ToHandle(LConstantOperand* op) const; | 133 Handle<Object> ToHandle(LConstantOperand* op) const; |
130 | 134 |
131 // The operand denoting the second word (the one with a higher address) of | 135 // The operand denoting the second word (the one with a higher address) of |
132 // a double stack slot. | 136 // a double stack slot. |
133 Operand HighOperand(LOperand* op); | 137 Operand HighOperand(LOperand* op); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 Label exit_; | 532 Label exit_; |
529 Label* external_exit_; | 533 Label* external_exit_; |
530 Label done_; | 534 Label done_; |
531 int instruction_index_; | 535 int instruction_index_; |
532 LCodeGen::X87Stack x87_stack_; | 536 LCodeGen::X87Stack x87_stack_; |
533 }; | 537 }; |
534 | 538 |
535 } } // namespace v8::internal | 539 } } // namespace v8::internal |
536 | 540 |
537 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 541 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |