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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Finish the code by setting stack height, safepoint, and bailout | 108 // Finish the code by setting stack height, safepoint, and bailout |
109 // information on it. | 109 // information on it. |
110 void FinishCode(Handle<Code> code); | 110 void FinishCode(Handle<Code> code); |
111 | 111 |
112 // Deferred code support. | 112 // Deferred code support. |
113 template<int T> | 113 template<int T> |
114 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | 114 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, |
115 Token::Value op); | 115 Token::Value op); |
116 void DoDeferredNumberTagD(LNumberTagD* instr); | 116 void DoDeferredNumberTagD(LNumberTagD* instr); |
117 void DoDeferredNumberTagI(LNumberTagI* instr); | 117 |
| 118 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
| 119 void DoDeferredNumberTagI(LInstruction* instr, IntegerSignedness signedness); |
| 120 |
118 void DoDeferredTaggedToI(LTaggedToI* instr); | 121 void DoDeferredTaggedToI(LTaggedToI* instr); |
119 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 122 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
120 void DoDeferredStackCheck(LStackCheck* instr); | 123 void DoDeferredStackCheck(LStackCheck* instr); |
121 void DoDeferredRandom(LRandom* instr); | 124 void DoDeferredRandom(LRandom* instr); |
122 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 125 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
123 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 126 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
124 void DoDeferredAllocateObject(LAllocateObject* instr); | 127 void DoDeferredAllocateObject(LAllocateObject* instr); |
125 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 128 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
126 Label* map_check); | 129 Label* map_check); |
127 | 130 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 248 |
246 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 249 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
247 SafepointMode safepoint_mode); | 250 SafepointMode safepoint_mode); |
248 | 251 |
249 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 252 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
250 Safepoint::DeoptMode mode); | 253 Safepoint::DeoptMode mode); |
251 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 254 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
252 | 255 |
253 void AddToTranslation(Translation* translation, | 256 void AddToTranslation(Translation* translation, |
254 LOperand* op, | 257 LOperand* op, |
255 bool is_tagged); | 258 bool is_tagged, |
| 259 bool is_uint32); |
256 void PopulateDeoptimizationData(Handle<Code> code); | 260 void PopulateDeoptimizationData(Handle<Code> code); |
257 int DefineDeoptimizationLiteral(Handle<Object> literal); | 261 int DefineDeoptimizationLiteral(Handle<Object> literal); |
258 | 262 |
259 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 263 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
260 | 264 |
261 Register ToRegister(int index) const; | 265 Register ToRegister(int index) const; |
262 DoubleRegister ToDoubleRegister(int index) const; | 266 DoubleRegister ToDoubleRegister(int index) const; |
263 | 267 |
264 // Specific math operations - used from DoUnaryMathOperation. | 268 // Specific math operations - used from DoUnaryMathOperation. |
265 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | 269 void EmitIntegerMathAbs(LUnaryMathOperation* instr); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 LCodeGen* codegen_; | 463 LCodeGen* codegen_; |
460 Label entry_; | 464 Label entry_; |
461 Label exit_; | 465 Label exit_; |
462 Label* external_exit_; | 466 Label* external_exit_; |
463 int instruction_index_; | 467 int instruction_index_; |
464 }; | 468 }; |
465 | 469 |
466 } } // namespace v8::internal | 470 } } // namespace v8::internal |
467 | 471 |
468 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 472 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |