| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // chunk contains constructs we cannot handle. Returns true if the | 91 // chunk contains constructs we cannot handle. Returns true if the |
| 92 // code generation attempt succeeded. | 92 // code generation attempt succeeded. |
| 93 bool GenerateCode(); | 93 bool GenerateCode(); |
| 94 | 94 |
| 95 // Finish the code by setting stack height, safepoint, and bailout | 95 // Finish the code by setting stack height, safepoint, and bailout |
| 96 // information on it. | 96 // information on it. |
| 97 void FinishCode(Handle<Code> code); | 97 void FinishCode(Handle<Code> code); |
| 98 | 98 |
| 99 // Deferred code support. | 99 // Deferred code support. |
| 100 void DoDeferredNumberTagD(LNumberTagD* instr); | 100 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 101 void DoDeferredNumberTagU(LNumberTagU* instr); |
| 101 void DoDeferredTaggedToI(LTaggedToI* instr); | 102 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 102 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 103 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 103 void DoDeferredStackCheck(LStackCheck* instr); | 104 void DoDeferredStackCheck(LStackCheck* instr); |
| 104 void DoDeferredRandom(LRandom* instr); | 105 void DoDeferredRandom(LRandom* instr); |
| 105 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 106 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 106 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 107 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 107 void DoDeferredAllocateObject(LAllocateObject* instr); | 108 void DoDeferredAllocateObject(LAllocateObject* instr); |
| 108 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 109 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 109 Label* map_check); | 110 Label* map_check); |
| 110 | 111 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 217 |
| 217 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 218 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 218 SafepointMode safepoint_mode, | 219 SafepointMode safepoint_mode, |
| 219 int argc); | 220 int argc); |
| 220 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 221 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 221 Safepoint::DeoptMode mode); | 222 Safepoint::DeoptMode mode); |
| 222 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 223 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
| 223 | 224 |
| 224 void AddToTranslation(Translation* translation, | 225 void AddToTranslation(Translation* translation, |
| 225 LOperand* op, | 226 LOperand* op, |
| 226 bool is_tagged); | 227 bool is_tagged, |
| 228 bool is_uint32); |
| 227 void PopulateDeoptimizationData(Handle<Code> code); | 229 void PopulateDeoptimizationData(Handle<Code> code); |
| 228 int DefineDeoptimizationLiteral(Handle<Object> literal); | 230 int DefineDeoptimizationLiteral(Handle<Object> literal); |
| 229 | 231 |
| 230 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 232 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 231 | 233 |
| 232 Register ToRegister(int index) const; | 234 Register ToRegister(int index) const; |
| 233 XMMRegister ToDoubleRegister(int index) const; | 235 XMMRegister ToDoubleRegister(int index) const; |
| 234 Operand BuildFastArrayOperand( | 236 Operand BuildFastArrayOperand( |
| 235 LOperand* elements_pointer, | 237 LOperand* elements_pointer, |
| 236 LOperand* key, | 238 LOperand* key, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 LCodeGen* codegen_; | 406 LCodeGen* codegen_; |
| 405 Label entry_; | 407 Label entry_; |
| 406 Label exit_; | 408 Label exit_; |
| 407 Label* external_exit_; | 409 Label* external_exit_; |
| 408 int instruction_index_; | 410 int instruction_index_; |
| 409 }; | 411 }; |
| 410 | 412 |
| 411 } } // namespace v8::internal | 413 } } // namespace v8::internal |
| 412 | 414 |
| 413 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 415 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |