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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 Register EmitLoadRegister(LOperand* op, Register scratch); | 111 Register EmitLoadRegister(LOperand* op, Register scratch); |
112 | 112 |
113 // LOperand must be a double register. | 113 // LOperand must be a double register. |
114 DoubleRegister ToDoubleRegister(LOperand* op) const; | 114 DoubleRegister ToDoubleRegister(LOperand* op) const; |
115 | 115 |
116 // LOperand is loaded into dbl_scratch, unless already a double register. | 116 // LOperand is loaded into dbl_scratch, unless already a double register. |
117 DoubleRegister EmitLoadDoubleRegister(LOperand* op, | 117 DoubleRegister EmitLoadDoubleRegister(LOperand* op, |
118 FloatRegister flt_scratch, | 118 FloatRegister flt_scratch, |
119 DoubleRegister dbl_scratch); | 119 DoubleRegister dbl_scratch); |
120 int ToInteger32(LConstantOperand* op) const; | 120 int ToInteger32(LConstantOperand* op) const; |
| 121 Smi* ToSmi(LConstantOperand* op) const; |
121 double ToDouble(LConstantOperand* op) const; | 122 double ToDouble(LConstantOperand* op) const; |
122 Operand ToOperand(LOperand* op); | 123 Operand ToOperand(LOperand* op); |
123 MemOperand ToMemOperand(LOperand* op) const; | 124 MemOperand ToMemOperand(LOperand* op) const; |
124 // Returns a MemOperand pointing to the high word of a DoubleStackSlot. | 125 // Returns a MemOperand pointing to the high word of a DoubleStackSlot. |
125 MemOperand ToHighMemOperand(LOperand* op) const; | 126 MemOperand ToHighMemOperand(LOperand* op) const; |
126 | 127 |
127 bool IsInteger32(LConstantOperand* op) const; | 128 bool IsInteger32(LConstantOperand* op) const; |
128 bool IsSmi(LConstantOperand* op) const; | 129 bool IsSmi(LConstantOperand* op) const; |
129 Handle<Object> ToHandle(LConstantOperand* op) const; | 130 Handle<Object> ToHandle(LConstantOperand* op) const; |
130 | 131 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 LCodeGen* codegen_; | 507 LCodeGen* codegen_; |
507 Label entry_; | 508 Label entry_; |
508 Label exit_; | 509 Label exit_; |
509 Label* external_exit_; | 510 Label* external_exit_; |
510 int instruction_index_; | 511 int instruction_index_; |
511 }; | 512 }; |
512 | 513 |
513 } } // namespace v8::internal | 514 } } // namespace v8::internal |
514 | 515 |
515 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 516 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |