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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool IsX87TopOfStack(LOperand* op) const; | 109 bool IsX87TopOfStack(LOperand* op) const; |
110 | 110 |
111 bool IsInteger32(LConstantOperand* op) const; | 111 bool IsInteger32(LConstantOperand* op) const; |
112 bool IsSmi(LConstantOperand* op) const; | 112 bool IsSmi(LConstantOperand* op) const; |
113 Immediate ToInteger32Immediate(LOperand* op) const { | 113 Immediate ToInteger32Immediate(LOperand* op) const { |
114 return Immediate(ToInteger32(LConstantOperand::cast(op))); | 114 return Immediate(ToInteger32(LConstantOperand::cast(op))); |
115 } | 115 } |
116 Immediate ToSmiImmediate(LOperand* op) const { | 116 Immediate ToSmiImmediate(LOperand* op) const { |
117 return Immediate(Smi::FromInt(ToInteger32(LConstantOperand::cast(op)))); | 117 return Immediate(Smi::FromInt(ToInteger32(LConstantOperand::cast(op)))); |
118 } | 118 } |
| 119 double ToDouble(LConstantOperand* op) const; |
119 | 120 |
120 // Support for non-sse2 (x87) floating point stack handling. | 121 // Support for non-sse2 (x87) floating point stack handling. |
121 // These functions maintain the depth of the stack (either 0 or 1) | 122 // These functions maintain the depth of the stack (either 0 or 1) |
122 void PushX87DoubleOperand(Operand src); | 123 void PushX87DoubleOperand(Operand src); |
123 void PushX87FloatOperand(Operand src); | 124 void PushX87FloatOperand(Operand src); |
124 void ReadX87Operand(Operand dst); | 125 void ReadX87Operand(Operand dst); |
125 bool X87StackNonEmpty() const { return x87_stack_depth_ > 0; } | 126 bool X87StackNonEmpty() const { return x87_stack_depth_ > 0; } |
126 void PopX87(); | 127 void PopX87(); |
127 void CurrentInstructionReturnsX87Result(); | 128 void CurrentInstructionReturnsX87Result(); |
128 void FlushX87StackIfNecessary(LInstruction* instr); | 129 void FlushX87StackIfNecessary(LInstruction* instr); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 287 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
287 void PopulateDeoptimizationData(Handle<Code> code); | 288 void PopulateDeoptimizationData(Handle<Code> code); |
288 int DefineDeoptimizationLiteral(Handle<Object> literal); | 289 int DefineDeoptimizationLiteral(Handle<Object> literal); |
289 | 290 |
290 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 291 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
291 | 292 |
292 Register ToRegister(int index) const; | 293 Register ToRegister(int index) const; |
293 XMMRegister ToDoubleRegister(int index) const; | 294 XMMRegister ToDoubleRegister(int index) const; |
294 int ToInteger32(LConstantOperand* op) const; | 295 int ToInteger32(LConstantOperand* op) const; |
295 | 296 |
296 double ToDouble(LConstantOperand* op) const; | |
297 Operand BuildFastArrayOperand(LOperand* elements_pointer, | 297 Operand BuildFastArrayOperand(LOperand* elements_pointer, |
298 LOperand* key, | 298 LOperand* key, |
299 Representation key_representation, | 299 Representation key_representation, |
300 ElementsKind elements_kind, | 300 ElementsKind elements_kind, |
301 uint32_t offset, | 301 uint32_t offset, |
302 uint32_t additional_index = 0); | 302 uint32_t additional_index = 0); |
303 | 303 |
304 void EmitIntegerMathAbs(LMathAbs* instr); | 304 void EmitIntegerMathAbs(LMathAbs* instr); |
305 | 305 |
306 // Support for recording safepoint and position information. | 306 // Support for recording safepoint and position information. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 LCodeGen* codegen_; | 475 LCodeGen* codegen_; |
476 Label entry_; | 476 Label entry_; |
477 Label exit_; | 477 Label exit_; |
478 Label* external_exit_; | 478 Label* external_exit_; |
479 int instruction_index_; | 479 int instruction_index_; |
480 }; | 480 }; |
481 | 481 |
482 } } // namespace v8::internal | 482 } } // namespace v8::internal |
483 | 483 |
484 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 484 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |