| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void FinishCode(Handle<Code> code); | 101 void FinishCode(Handle<Code> code); |
| 102 | 102 |
| 103 // Deferred code support. | 103 // Deferred code support. |
| 104 template<int T> | 104 template<int T> |
| 105 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | 105 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, |
| 106 Token::Value op); | 106 Token::Value op); |
| 107 void DoDeferredNumberTagD(LNumberTagD* instr); | 107 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 108 void DoDeferredNumberTagI(LNumberTagI* instr); | 108 void DoDeferredNumberTagI(LNumberTagI* instr); |
| 109 void DoDeferredTaggedToI(LTaggedToI* instr); | 109 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 110 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 110 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 111 void DoDeferredStackCheck(LGoto* instr); | 111 void DoDeferredStackCheck(LStackCheck* instr); |
| 112 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 112 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 113 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 113 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 114 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 114 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 115 Label* map_check); | 115 Label* map_check); |
| 116 | 116 |
| 117 // Parallel move support. | 117 // Parallel move support. |
| 118 void DoParallelMove(LParallelMove* move); | 118 void DoParallelMove(LParallelMove* move); |
| 119 void DoGap(LGap* instr); | 119 void DoGap(LGap* instr); |
| 120 | 120 |
| 121 // Emit frame translation commands for an environment. | 121 // Emit frame translation commands for an environment. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 int deoptimization_index); | 254 int deoptimization_index); |
| 255 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 255 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 256 int arguments, | 256 int arguments, |
| 257 int deoptimization_index); | 257 int deoptimization_index); |
| 258 void RecordPosition(int position); | 258 void RecordPosition(int position); |
| 259 int LastSafepointEnd() { | 259 int LastSafepointEnd() { |
| 260 return static_cast<int>(safepoints_.GetPcAfterGap()); | 260 return static_cast<int>(safepoints_.GetPcAfterGap()); |
| 261 } | 261 } |
| 262 | 262 |
| 263 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 263 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 264 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); | 264 void EmitGoto(int block); |
| 265 void EmitBranch(int left_block, int right_block, Condition cc); | 265 void EmitBranch(int left_block, int right_block, Condition cc); |
| 266 void EmitCmpI(LOperand* left, LOperand* right); | 266 void EmitCmpI(LOperand* left, LOperand* right); |
| 267 void EmitNumberUntagD(Register input, | 267 void EmitNumberUntagD(Register input, |
| 268 DoubleRegister result, | 268 DoubleRegister result, |
| 269 bool deoptimize_on_undefined, | 269 bool deoptimize_on_undefined, |
| 270 LEnvironment* env); | 270 LEnvironment* env); |
| 271 | 271 |
| 272 // Emits optimized code for typeof x == "y". Modifies input register. | 272 // Emits optimized code for typeof x == "y". Modifies input register. |
| 273 // Returns the condition on which a final split to | 273 // Returns the condition on which a final split to |
| 274 // true and false label should be made, to optimize fallthrough. | 274 // true and false label should be made, to optimize fallthrough. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 private: | 395 private: |
| 396 LCodeGen* codegen_; | 396 LCodeGen* codegen_; |
| 397 Label entry_; | 397 Label entry_; |
| 398 Label exit_; | 398 Label exit_; |
| 399 Label* external_exit_; | 399 Label* external_exit_; |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 } } // namespace v8::internal | 402 } } // namespace v8::internal |
| 403 | 403 |
| 404 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 404 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |