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 void DoDeferredBinaryOpStub(LPointerMap* pointer_map, | 113 template<int T> |
114 LOperand* left_argument, | 114 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, |
115 LOperand* right_argument, | |
116 Token::Value op); | 115 Token::Value op); |
117 void DoDeferredNumberTagD(LNumberTagD* instr); | 116 void DoDeferredNumberTagD(LNumberTagD* instr); |
118 | 117 |
119 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 118 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
120 void DoDeferredNumberTagI(LInstruction* instr, | 119 void DoDeferredNumberTagI(LInstruction* instr, |
121 LOperand* value, | 120 LOperand* value, |
122 IntegerSignedness signedness); | 121 IntegerSignedness signedness); |
123 | 122 |
124 void DoDeferredTaggedToI(LTaggedToI* instr); | 123 void DoDeferredTaggedToI(LTaggedToI* instr); |
125 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 124 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 LCodeGen* codegen_; | 474 LCodeGen* codegen_; |
476 Label entry_; | 475 Label entry_; |
477 Label exit_; | 476 Label exit_; |
478 Label* external_exit_; | 477 Label* external_exit_; |
479 int instruction_index_; | 478 int instruction_index_; |
480 }; | 479 }; |
481 | 480 |
482 } } // namespace v8::internal | 481 } } // namespace v8::internal |
483 | 482 |
484 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 483 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |