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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Try to generate code for the entire chunk, but it may fail if the | 103 // Try to generate code for the entire chunk, but it may fail if the |
104 // chunk contains constructs we cannot handle. Returns true if the | 104 // chunk contains constructs we cannot handle. Returns true if the |
105 // code generation attempt succeeded. | 105 // code generation attempt succeeded. |
106 bool GenerateCode(); | 106 bool GenerateCode(); |
107 | 107 |
108 // Finish the code by setting stack height, safepoint, and bailout | 108 // Finish the code by setting stack height, safepoint, and bailout |
109 // information on it. | 109 // information on it. |
110 void FinishCode(Handle<Code> code); | 110 void FinishCode(Handle<Code> code); |
111 | 111 |
112 // Deferred code support. | 112 // Deferred code support. |
113 template<int T> | 113 void DoDeferredBinaryOpStub(LPointerMap* pointer_map, |
114 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | 114 LOperand* left_argument, |
| 115 LOperand* right_argument, |
115 Token::Value op); | 116 Token::Value op); |
116 void DoDeferredNumberTagD(LNumberTagD* instr); | 117 void DoDeferredNumberTagD(LNumberTagD* instr); |
117 | 118 |
118 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 119 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
119 void DoDeferredNumberTagI(LInstruction* instr, | 120 void DoDeferredNumberTagI(LInstruction* instr, |
120 LOperand* value, | 121 LOperand* value, |
121 IntegerSignedness signedness); | 122 IntegerSignedness signedness); |
122 | 123 |
123 void DoDeferredTaggedToI(LTaggedToI* instr); | 124 void DoDeferredTaggedToI(LTaggedToI* instr); |
124 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 125 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 LCodeGen* codegen_; | 475 LCodeGen* codegen_; |
475 Label entry_; | 476 Label entry_; |
476 Label exit_; | 477 Label exit_; |
477 Label* external_exit_; | 478 Label* external_exit_; |
478 int instruction_index_; | 479 int instruction_index_; |
479 }; | 480 }; |
480 | 481 |
481 } } // namespace v8::internal | 482 } } // namespace v8::internal |
482 | 483 |
483 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 484 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |