| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Try to generate code for the entire chunk, but it may fail if the | 86 // Try to generate code for the entire chunk, but it may fail if the |
| 87 // chunk contains constructs we cannot handle. Returns true if the | 87 // chunk contains constructs we cannot handle. Returns true if the |
| 88 // code generation attempt succeeded. | 88 // code generation attempt succeeded. |
| 89 bool GenerateCode(); | 89 bool GenerateCode(); |
| 90 | 90 |
| 91 // Finish the code by setting stack height, safepoint, and bailout | 91 // Finish the code by setting stack height, safepoint, and bailout |
| 92 // information on it. | 92 // information on it. |
| 93 void FinishCode(Handle<Code> code); | 93 void FinishCode(Handle<Code> code); |
| 94 | 94 |
| 95 // Deferred code support. | 95 // Deferred code support. |
| 96 void DoDeferredGenericBinaryStub(LBinaryOperation* instr, Token::Value op); | 96 template<int T> |
| 97 void DoDeferredGenericBinaryStub(LTemplateInstruction<1, 2, T>* instr, |
| 98 Token::Value op); |
| 97 void DoDeferredNumberTagD(LNumberTagD* instr); | 99 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 98 void DoDeferredNumberTagI(LNumberTagI* instr); | 100 void DoDeferredNumberTagI(LNumberTagI* instr); |
| 99 void DoDeferredTaggedToI(LTaggedToI* instr); | 101 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 100 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 102 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 101 void DoDeferredStackCheck(LGoto* instr); | 103 void DoDeferredStackCheck(LGoto* instr); |
| 104 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 105 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 106 Label* map_check); |
| 102 | 107 |
| 103 // Parallel move support. | 108 // Parallel move support. |
| 104 void DoParallelMove(LParallelMove* move); | 109 void DoParallelMove(LParallelMove* move); |
| 105 | 110 |
| 106 // Emit frame translation commands for an environment. | 111 // Emit frame translation commands for an environment. |
| 107 void WriteTranslation(LEnvironment* environment, Translation* translation); | 112 void WriteTranslation(LEnvironment* environment, Translation* translation); |
| 108 | 113 |
| 109 // Declare methods that deal with the individual node types. | 114 // Declare methods that deal with the individual node types. |
| 110 #define DECLARE_DO(type) void Do##type(L##type* node); | 115 #define DECLARE_DO(type) void Do##type(L##type* node); |
| 111 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 116 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // LOperand is loaded into dbl_scratch, unless already a double register. | 210 // LOperand is loaded into dbl_scratch, unless already a double register. |
| 206 DoubleRegister EmitLoadDoubleRegister(LOperand* op, | 211 DoubleRegister EmitLoadDoubleRegister(LOperand* op, |
| 207 SwVfpRegister flt_scratch, | 212 SwVfpRegister flt_scratch, |
| 208 DoubleRegister dbl_scratch); | 213 DoubleRegister dbl_scratch); |
| 209 | 214 |
| 210 int ToInteger32(LConstantOperand* op) const; | 215 int ToInteger32(LConstantOperand* op) const; |
| 211 Operand ToOperand(LOperand* op); | 216 Operand ToOperand(LOperand* op); |
| 212 MemOperand ToMemOperand(LOperand* op) const; | 217 MemOperand ToMemOperand(LOperand* op) const; |
| 213 | 218 |
| 214 // Specific math operations - used from DoUnaryMathOperation. | 219 // Specific math operations - used from DoUnaryMathOperation. |
| 220 void EmitIntegerMathAbs(LUnaryMathOperation* instr); |
| 215 void DoMathAbs(LUnaryMathOperation* instr); | 221 void DoMathAbs(LUnaryMathOperation* instr); |
| 216 void DoMathFloor(LUnaryMathOperation* instr); | 222 void DoMathFloor(LUnaryMathOperation* instr); |
| 217 void DoMathSqrt(LUnaryMathOperation* instr); | 223 void DoMathSqrt(LUnaryMathOperation* instr); |
| 218 | 224 |
| 219 // Support for recording safepoint and position information. | 225 // Support for recording safepoint and position information. |
| 220 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 226 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); |
| 221 void RecordSafepointWithRegisters(LPointerMap* pointers, | 227 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 222 int arguments, | 228 int arguments, |
| 223 int deoptimization_index); | 229 int deoptimization_index); |
| 224 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 230 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 private: | 306 private: |
| 301 LCodeGen* codegen_; | 307 LCodeGen* codegen_; |
| 302 Label entry_; | 308 Label entry_; |
| 303 Label exit_; | 309 Label exit_; |
| 304 Label* external_exit_; | 310 Label* external_exit_; |
| 305 }; | 311 }; |
| 306 | 312 |
| 307 } } // namespace v8::internal | 313 } } // namespace v8::internal |
| 308 | 314 |
| 309 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 315 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |