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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // chunk contains constructs we cannot handle. Returns true if the | 98 // chunk contains constructs we cannot handle. Returns true if the |
99 // code generation attempt succeeded. | 99 // code generation attempt succeeded. |
100 bool GenerateCode(); | 100 bool GenerateCode(); |
101 | 101 |
102 // Finish the code by setting stack height, safepoint, and bailout | 102 // Finish the code by setting stack height, safepoint, and bailout |
103 // information on it. | 103 // information on it. |
104 void FinishCode(Handle<Code> code); | 104 void FinishCode(Handle<Code> code); |
105 | 105 |
106 // Deferred code support. | 106 // Deferred code support. |
107 void DoDeferredNumberTagD(LNumberTagD* instr); | 107 void DoDeferredNumberTagD(LNumberTagD* instr); |
108 void DoDeferredNumberTagI(LNumberTagI* instr); | 108 |
| 109 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
| 110 void DoDeferredNumberTagI(LInstruction* instr, IntegerSignedness signedness); |
| 111 |
109 void DoDeferredTaggedToI(LTaggedToI* instr); | 112 void DoDeferredTaggedToI(LTaggedToI* instr); |
110 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 113 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
111 void DoDeferredStackCheck(LStackCheck* instr); | 114 void DoDeferredStackCheck(LStackCheck* instr); |
112 void DoDeferredRandom(LRandom* instr); | 115 void DoDeferredRandom(LRandom* instr); |
113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 116 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 117 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
115 void DoDeferredAllocateObject(LAllocateObject* instr); | 118 void DoDeferredAllocateObject(LAllocateObject* instr); |
116 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 119 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
117 Label* map_check); | 120 Label* map_check); |
118 | 121 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 229 |
227 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 230 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
228 SafepointMode safepoint_mode); | 231 SafepointMode safepoint_mode); |
229 | 232 |
230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 233 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
231 Safepoint::DeoptMode mode); | 234 Safepoint::DeoptMode mode); |
232 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 235 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
233 | 236 |
234 void AddToTranslation(Translation* translation, | 237 void AddToTranslation(Translation* translation, |
235 LOperand* op, | 238 LOperand* op, |
236 bool is_tagged); | 239 bool is_tagged, |
| 240 bool is_uint32); |
237 void PopulateDeoptimizationData(Handle<Code> code); | 241 void PopulateDeoptimizationData(Handle<Code> code); |
238 int DefineDeoptimizationLiteral(Handle<Object> literal); | 242 int DefineDeoptimizationLiteral(Handle<Object> literal); |
239 | 243 |
240 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 244 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
241 | 245 |
242 Register ToRegister(int index) const; | 246 Register ToRegister(int index) const; |
243 XMMRegister ToDoubleRegister(int index) const; | 247 XMMRegister ToDoubleRegister(int index) const; |
244 int ToInteger32(LConstantOperand* op) const; | 248 int ToInteger32(LConstantOperand* op) const; |
245 | 249 |
246 double ToDouble(LConstantOperand* op) const; | 250 double ToDouble(LConstantOperand* op) const; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 LCodeGen* codegen_; | 414 LCodeGen* codegen_; |
411 Label entry_; | 415 Label entry_; |
412 Label exit_; | 416 Label exit_; |
413 Label* external_exit_; | 417 Label* external_exit_; |
414 int instruction_index_; | 418 int instruction_index_; |
415 }; | 419 }; |
416 | 420 |
417 } } // namespace v8::internal | 421 } } // namespace v8::internal |
418 | 422 |
419 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 423 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |