| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool GenerateCode(); | 104 bool GenerateCode(); |
| 105 | 105 |
| 106 // Finish the code by setting stack height, safepoint, and bailout | 106 // Finish the code by setting stack height, safepoint, and bailout |
| 107 // information on it. | 107 // information on it. |
| 108 void FinishCode(Handle<Code> code); | 108 void FinishCode(Handle<Code> code); |
| 109 | 109 |
| 110 // Deferred code support. | 110 // Deferred code support. |
| 111 void DoDeferredNumberTagD(LNumberTagD* instr); | 111 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 112 void DoDeferredNumberTagU(LNumberTagU* instr); | 112 void DoDeferredNumberTagU(LNumberTagU* instr); |
| 113 void DoDeferredTaggedToI(LTaggedToI* instr); | 113 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 114 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 114 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 115 void DoDeferredStackCheck(LStackCheck* instr); | 115 void DoDeferredStackCheck(LStackCheck* instr); |
| 116 void DoDeferredRandom(LRandom* instr); | 116 void DoDeferredRandom(LRandom* instr); |
| 117 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 117 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 118 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 118 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 119 void DoDeferredAllocateObject(LAllocateObject* instr); | 119 void DoDeferredAllocateObject(LAllocateObject* instr); |
| 120 void DoDeferredAllocate(LAllocate* instr); | 120 void DoDeferredAllocate(LAllocate* instr); |
| 121 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 121 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 122 Label* map_check); | 122 Label* map_check); |
| 123 | 123 |
| 124 void DoCheckMapCommon(Register reg, Handle<Map> map, | 124 void DoCheckMapCommon(Register reg, Handle<Map> map, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 251 |
| 252 Register ToRegister(int index) const; | 252 Register ToRegister(int index) const; |
| 253 XMMRegister ToDoubleRegister(int index) const; | 253 XMMRegister ToDoubleRegister(int index) const; |
| 254 Operand BuildFastArrayOperand( | 254 Operand BuildFastArrayOperand( |
| 255 LOperand* elements_pointer, | 255 LOperand* elements_pointer, |
| 256 LOperand* key, | 256 LOperand* key, |
| 257 ElementsKind elements_kind, | 257 ElementsKind elements_kind, |
| 258 uint32_t offset, | 258 uint32_t offset, |
| 259 uint32_t additional_index = 0); | 259 uint32_t additional_index = 0); |
| 260 | 260 |
| 261 // Specific math operations - used from DoUnaryMathOperation. | 261 void EmitIntegerMathAbs(LMathAbs* instr); |
| 262 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | |
| 263 void DoMathAbs(LUnaryMathOperation* instr); | |
| 264 void DoMathFloor(LUnaryMathOperation* instr); | |
| 265 void DoMathRound(LUnaryMathOperation* instr); | |
| 266 void DoMathSqrt(LUnaryMathOperation* instr); | |
| 267 void DoMathPowHalf(LUnaryMathOperation* instr); | |
| 268 void DoMathLog(LUnaryMathOperation* instr); | |
| 269 void DoMathTan(LUnaryMathOperation* instr); | |
| 270 void DoMathCos(LUnaryMathOperation* instr); | |
| 271 void DoMathSin(LUnaryMathOperation* instr); | |
| 272 | 262 |
| 273 // Support for recording safepoint and position information. | 263 // Support for recording safepoint and position information. |
| 274 void RecordSafepoint(LPointerMap* pointers, | 264 void RecordSafepoint(LPointerMap* pointers, |
| 275 Safepoint::Kind kind, | 265 Safepoint::Kind kind, |
| 276 int arguments, | 266 int arguments, |
| 277 Safepoint::DeoptMode mode); | 267 Safepoint::DeoptMode mode); |
| 278 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 268 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 279 void RecordSafepoint(Safepoint::DeoptMode mode); | 269 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 280 void RecordSafepointWithRegisters(LPointerMap* pointers, | 270 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 281 int arguments, | 271 int arguments, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 LCodeGen* codegen_; | 430 LCodeGen* codegen_; |
| 441 Label entry_; | 431 Label entry_; |
| 442 Label exit_; | 432 Label exit_; |
| 443 Label* external_exit_; | 433 Label* external_exit_; |
| 444 int instruction_index_; | 434 int instruction_index_; |
| 445 }; | 435 }; |
| 446 | 436 |
| 447 } } // namespace v8::internal | 437 } } // namespace v8::internal |
| 448 | 438 |
| 449 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 439 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |