| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Deferred code support. | 98 // Deferred code support. |
| 99 template<int T> | 99 template<int T> |
| 100 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | 100 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, |
| 101 Token::Value op); | 101 Token::Value op); |
| 102 void DoDeferredNumberTagD(LNumberTagD* instr); | 102 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 103 void DoDeferredNumberTagI(LNumberTagI* instr); | 103 void DoDeferredNumberTagI(LNumberTagI* instr); |
| 104 void DoDeferredTaggedToI(LTaggedToI* instr); | 104 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 105 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 105 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 106 void DoDeferredStackCheck(LGoto* instr); | 106 void DoDeferredStackCheck(LGoto* instr); |
| 107 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 107 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 108 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 108 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 109 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 109 Label* map_check); | 110 Label* map_check); |
| 110 | 111 |
| 111 // Parallel move support. | 112 // Parallel move support. |
| 112 void DoParallelMove(LParallelMove* move); | 113 void DoParallelMove(LParallelMove* move); |
| 113 | 114 |
| 114 // Emit frame translation commands for an environment. | 115 // Emit frame translation commands for an environment. |
| 115 void WriteTranslation(LEnvironment* environment, Translation* translation); | 116 void WriteTranslation(LEnvironment* environment, Translation* translation); |
| 116 | 117 |
| 117 // Declare methods that deal with the individual node types. | 118 // Declare methods that deal with the individual node types. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 int deoptimization_index); | 223 int deoptimization_index); |
| 223 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 224 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); |
| 224 void RecordSafepoint(int deoptimization_index); | 225 void RecordSafepoint(int deoptimization_index); |
| 225 void RecordSafepointWithRegisters(LPointerMap* pointers, | 226 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 226 int arguments, | 227 int arguments, |
| 227 int deoptimization_index); | 228 int deoptimization_index); |
| 228 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 229 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 229 int arguments, | 230 int arguments, |
| 230 int deoptimization_index); | 231 int deoptimization_index); |
| 231 void RecordPosition(int position); | 232 void RecordPosition(int position); |
| 233 int LastSafepointEnd() { |
| 234 return static_cast<int>(safepoints_.GetPcAfterGap()); |
| 235 } |
| 232 | 236 |
| 233 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 237 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 234 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); | 238 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); |
| 235 void EmitBranch(int left_block, int right_block, Condition cc); | 239 void EmitBranch(int left_block, int right_block, Condition cc); |
| 236 void EmitCmpI(LOperand* left, LOperand* right); | 240 void EmitCmpI(LOperand* left, LOperand* right); |
| 237 void EmitNumberUntagD(Register input, | 241 void EmitNumberUntagD(Register input, |
| 238 DoubleRegister result, | 242 DoubleRegister result, |
| 239 LEnvironment* env); | 243 LEnvironment* env); |
| 240 | 244 |
| 241 // Emits optimized code for typeof x == "y". Modifies input register. | 245 // Emits optimized code for typeof x == "y". Modifies input register. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 private: | 312 private: |
| 309 LCodeGen* codegen_; | 313 LCodeGen* codegen_; |
| 310 Label entry_; | 314 Label entry_; |
| 311 Label exit_; | 315 Label exit_; |
| 312 Label* external_exit_; | 316 Label* external_exit_; |
| 313 }; | 317 }; |
| 314 | 318 |
| 315 } } // namespace v8::internal | 319 } } // namespace v8::internal |
| 316 | 320 |
| 317 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 321 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |