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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void FinishCode(Handle<Code> code); | 125 void FinishCode(Handle<Code> code); |
126 | 126 |
127 void DoDeferredNumberTagD(LNumberTagD* instr); | 127 void DoDeferredNumberTagD(LNumberTagD* instr); |
128 | 128 |
129 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 129 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
130 void DoDeferredNumberTagI(LInstruction* instr, | 130 void DoDeferredNumberTagI(LInstruction* instr, |
131 LOperand* value, | 131 LOperand* value, |
132 IntegerSignedness signedness); | 132 IntegerSignedness signedness); |
133 | 133 |
134 void DoDeferredTaggedToI(LTaggedToI* instr); | 134 void DoDeferredTaggedToI(LTaggedToI* instr); |
135 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 135 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
136 void DoDeferredStackCheck(LStackCheck* instr); | 136 void DoDeferredStackCheck(LStackCheck* instr); |
137 void DoDeferredRandom(LRandom* instr); | 137 void DoDeferredRandom(LRandom* instr); |
138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
140 void DoDeferredAllocateObject(LAllocateObject* instr); | 140 void DoDeferredAllocateObject(LAllocateObject* instr); |
141 void DoDeferredAllocate(LAllocate* instr); | 141 void DoDeferredAllocate(LAllocate* instr); |
142 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 142 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
143 Label* map_check); | 143 Label* map_check); |
144 | 144 |
145 void DoCheckMapCommon(Register map_reg, Handle<Map> map, | 145 void DoCheckMapCommon(Register map_reg, Handle<Map> map, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 int arguments_count); | 282 int arguments_count); |
283 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 283 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
284 void PopulateDeoptimizationData(Handle<Code> code); | 284 void PopulateDeoptimizationData(Handle<Code> code); |
285 int DefineDeoptimizationLiteral(Handle<Object> literal); | 285 int DefineDeoptimizationLiteral(Handle<Object> literal); |
286 | 286 |
287 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 287 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
288 | 288 |
289 Register ToRegister(int index) const; | 289 Register ToRegister(int index) const; |
290 DoubleRegister ToDoubleRegister(int index) const; | 290 DoubleRegister ToDoubleRegister(int index) const; |
291 | 291 |
292 // Specific math operations - used from DoUnaryMathOperation. | 292 void EmitIntegerMathAbs(LMathAbs* instr); |
293 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | |
294 void DoMathAbs(LUnaryMathOperation* instr); | |
295 void DoMathFloor(LUnaryMathOperation* instr); | |
296 void DoMathRound(LUnaryMathOperation* instr); | |
297 void DoMathSqrt(LUnaryMathOperation* instr); | |
298 void DoMathPowHalf(LUnaryMathOperation* instr); | |
299 void DoMathLog(LUnaryMathOperation* instr); | |
300 void DoMathTan(LUnaryMathOperation* instr); | |
301 void DoMathCos(LUnaryMathOperation* instr); | |
302 void DoMathSin(LUnaryMathOperation* instr); | |
303 | 293 |
304 // Support for recording safepoint and position information. | 294 // Support for recording safepoint and position information. |
305 void RecordSafepoint(LPointerMap* pointers, | 295 void RecordSafepoint(LPointerMap* pointers, |
306 Safepoint::Kind kind, | 296 Safepoint::Kind kind, |
307 int arguments, | 297 int arguments, |
308 Safepoint::DeoptMode mode); | 298 Safepoint::DeoptMode mode); |
309 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 299 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
310 void RecordSafepoint(Safepoint::DeoptMode mode); | 300 void RecordSafepoint(Safepoint::DeoptMode mode); |
311 void RecordSafepointWithRegisters(LPointerMap* pointers, | 301 void RecordSafepointWithRegisters(LPointerMap* pointers, |
312 int arguments, | 302 int arguments, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 LCodeGen* codegen_; | 496 LCodeGen* codegen_; |
507 Label entry_; | 497 Label entry_; |
508 Label exit_; | 498 Label exit_; |
509 Label* external_exit_; | 499 Label* external_exit_; |
510 int instruction_index_; | 500 int instruction_index_; |
511 }; | 501 }; |
512 | 502 |
513 } } // namespace v8::internal | 503 } } // namespace v8::internal |
514 | 504 |
515 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 505 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |