| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 template<int T> | 105 template<int T> |
| 106 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | 106 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, |
| 107 Token::Value op); | 107 Token::Value op); |
| 108 void DoDeferredNumberTagD(LNumberTagD* instr); | 108 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 109 void DoDeferredNumberTagI(LNumberTagI* instr); | 109 void DoDeferredNumberTagI(LNumberTagI* instr); |
| 110 void DoDeferredTaggedToI(LTaggedToI* instr); | 110 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 111 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 111 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 112 void DoDeferredStackCheck(LStackCheck* instr); | 112 void DoDeferredStackCheck(LStackCheck* instr); |
| 113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 115 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 115 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 116 Label* map_check); | 116 Label* map_check); |
| 117 | 117 |
| 118 // Parallel move support. | 118 // Parallel move support. |
| 119 void DoParallelMove(LParallelMove* move); | 119 void DoParallelMove(LParallelMove* move); |
| 120 void DoGap(LGap* instr); | 120 void DoGap(LGap* instr); |
| 121 | 121 |
| 122 // Emit frame translation commands for an environment. | 122 // Emit frame translation commands for an environment. |
| 123 void WriteTranslation(LEnvironment* environment, Translation* translation); | 123 void WriteTranslation(LEnvironment* environment, Translation* translation); |
| 124 | 124 |
| 125 // Declare methods that deal with the individual node types. | 125 // Declare methods that deal with the individual node types. |
| 126 #define DECLARE_DO(type) void Do##type(L##type* node); | 126 #define DECLARE_DO(type) void Do##type(L##type* node); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 // Generate a direct call to a known function. Expects the function | 209 // Generate a direct call to a known function. Expects the function |
| 210 // to be in r1. | 210 // to be in r1. |
| 211 void CallKnownFunction(Handle<JSFunction> function, | 211 void CallKnownFunction(Handle<JSFunction> function, |
| 212 int arity, | 212 int arity, |
| 213 LInstruction* instr, | 213 LInstruction* instr, |
| 214 CallKind call_kind); | 214 CallKind call_kind); |
| 215 | 215 |
| 216 void LoadHeapObject(Register result, Handle<HeapObject> object); | 216 void LoadHeapObject(Register result, Handle<HeapObject> object); |
| 217 | 217 |
| 218 void RegisterLazyDeoptimization(LInstruction* instr, | 218 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 219 SafepointMode safepoint_mode); | 219 SafepointMode safepoint_mode); |
| 220 | 220 |
| 221 void RegisterEnvironmentForDeoptimization(LEnvironment* environment); | 221 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 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); |
| 227 void PopulateDeoptimizationData(Handle<Code> code); | 228 void PopulateDeoptimizationData(Handle<Code> code); |
| 228 int DefineDeoptimizationLiteral(Handle<Object> literal); | 229 int DefineDeoptimizationLiteral(Handle<Object> literal); |
| 229 | 230 |
| 230 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 231 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 231 | 232 |
| 232 Register ToRegister(int index) const; | 233 Register ToRegister(int index) const; |
| 233 DoubleRegister ToDoubleRegister(int index) const; | 234 DoubleRegister ToDoubleRegister(int index) const; |
| 234 | 235 |
| 235 // Specific math operations - used from DoUnaryMathOperation. | 236 // Specific math operations - used from DoUnaryMathOperation. |
| 236 void EmitIntegerMathAbs(LUnaryMathOperation* instr); | 237 void EmitIntegerMathAbs(LUnaryMathOperation* instr); |
| 237 void DoMathAbs(LUnaryMathOperation* instr); | 238 void DoMathAbs(LUnaryMathOperation* instr); |
| 238 void DoMathFloor(LUnaryMathOperation* instr); | 239 void DoMathFloor(LUnaryMathOperation* instr); |
| 239 void DoMathRound(LUnaryMathOperation* instr); | 240 void DoMathRound(LUnaryMathOperation* instr); |
| 240 void DoMathSqrt(LUnaryMathOperation* instr); | 241 void DoMathSqrt(LUnaryMathOperation* instr); |
| 241 void DoMathPowHalf(LUnaryMathOperation* instr); | 242 void DoMathPowHalf(LUnaryMathOperation* instr); |
| 242 void DoMathLog(LUnaryMathOperation* instr); | 243 void DoMathLog(LUnaryMathOperation* instr); |
| 243 void DoMathCos(LUnaryMathOperation* instr); | 244 void DoMathCos(LUnaryMathOperation* instr); |
| 244 void DoMathSin(LUnaryMathOperation* instr); | 245 void DoMathSin(LUnaryMathOperation* instr); |
| 245 | 246 |
| 246 // Support for recording safepoint and position information. | 247 // Support for recording safepoint and position information. |
| 247 void RecordSafepoint(LPointerMap* pointers, | 248 void RecordSafepoint(LPointerMap* pointers, |
| 248 Safepoint::Kind kind, | 249 Safepoint::Kind kind, |
| 249 int arguments, | 250 int arguments, |
| 250 int deoptimization_index); | 251 Safepoint::DeoptMode mode); |
| 251 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 252 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 252 void RecordSafepoint(int deoptimization_index); | 253 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 253 void RecordSafepointWithRegisters(LPointerMap* pointers, | 254 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 254 int arguments, | 255 int arguments, |
| 255 int deoptimization_index); | 256 Safepoint::DeoptMode mode); |
| 256 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 257 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 257 int arguments, | 258 int arguments, |
| 258 int deoptimization_index); | 259 Safepoint::DeoptMode mode); |
| 259 void RecordPosition(int position); | 260 void RecordPosition(int position); |
| 260 int LastSafepointEnd() { | |
| 261 return static_cast<int>(safepoints_.GetPcAfterGap()); | |
| 262 } | |
| 263 | 261 |
| 264 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 262 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 265 void EmitGoto(int block); | 263 void EmitGoto(int block); |
| 266 void EmitBranch(int left_block, int right_block, Condition cc); | 264 void EmitBranch(int left_block, int right_block, Condition cc); |
| 267 void EmitNumberUntagD(Register input, | 265 void EmitNumberUntagD(Register input, |
| 268 DoubleRegister result, | 266 DoubleRegister result, |
| 269 bool deoptimize_on_undefined, | 267 bool deoptimize_on_undefined, |
| 270 LEnvironment* env); | 268 LEnvironment* env); |
| 271 | 269 |
| 272 // Emits optimized code for typeof x == "y". Modifies input register. | 270 // Emits optimized code for typeof x == "y". Modifies input register. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 LCodeGen* codegen_; | 399 LCodeGen* codegen_; |
| 402 Label entry_; | 400 Label entry_; |
| 403 Label exit_; | 401 Label exit_; |
| 404 Label* external_exit_; | 402 Label* external_exit_; |
| 405 int instruction_index_; | 403 int instruction_index_; |
| 406 }; | 404 }; |
| 407 | 405 |
| 408 } } // namespace v8::internal | 406 } } // namespace v8::internal |
| 409 | 407 |
| 410 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 408 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |