OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 DoubleRegister EmitLoadDoubleRegister(LOperand* op, | 86 DoubleRegister EmitLoadDoubleRegister(LOperand* op, |
87 FloatRegister flt_scratch, | 87 FloatRegister flt_scratch, |
88 DoubleRegister dbl_scratch); | 88 DoubleRegister dbl_scratch); |
89 int ToInteger32(LConstantOperand* op) const; | 89 int ToInteger32(LConstantOperand* op) const; |
90 double ToDouble(LConstantOperand* op) const; | 90 double ToDouble(LConstantOperand* op) const; |
91 Operand ToOperand(LOperand* op); | 91 Operand ToOperand(LOperand* op); |
92 MemOperand ToMemOperand(LOperand* op) const; | 92 MemOperand ToMemOperand(LOperand* op) const; |
93 // Returns a MemOperand pointing to the high word of a DoubleStackSlot. | 93 // Returns a MemOperand pointing to the high word of a DoubleStackSlot. |
94 MemOperand ToHighMemOperand(LOperand* op) const; | 94 MemOperand ToHighMemOperand(LOperand* op) const; |
95 | 95 |
| 96 bool IsInteger32(LConstantOperand* op) const; |
| 97 Handle<Object> ToHandle(LConstantOperand* op) const; |
| 98 |
96 // Try to generate code for the entire chunk, but it may fail if the | 99 // Try to generate code for the entire chunk, but it may fail if the |
97 // chunk contains constructs we cannot handle. Returns true if the | 100 // chunk contains constructs we cannot handle. Returns true if the |
98 // code generation attempt succeeded. | 101 // code generation attempt succeeded. |
99 bool GenerateCode(); | 102 bool GenerateCode(); |
100 | 103 |
101 // Finish the code by setting stack height, safepoint, and bailout | 104 // Finish the code by setting stack height, safepoint, and bailout |
102 // information on it. | 105 // information on it. |
103 void FinishCode(Handle<Code> code); | 106 void FinishCode(Handle<Code> code); |
104 | 107 |
105 void DoDeferredNumberTagD(LNumberTagD* instr); | 108 void DoDeferredNumberTagD(LNumberTagD* instr); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 LCodeGen* codegen_; | 436 LCodeGen* codegen_; |
434 Label entry_; | 437 Label entry_; |
435 Label exit_; | 438 Label exit_; |
436 Label* external_exit_; | 439 Label* external_exit_; |
437 int instruction_index_; | 440 int instruction_index_; |
438 }; | 441 }; |
439 | 442 |
440 } } // namespace v8::internal | 443 } } // namespace v8::internal |
441 | 444 |
442 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 445 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |