| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Try to generate code for the entire chunk, but it may fail if the | 95 // Try to generate code for the entire chunk, but it may fail if the |
| 96 // chunk contains constructs we cannot handle. Returns true if the | 96 // chunk contains constructs we cannot handle. Returns true if the |
| 97 // code generation attempt succeeded. | 97 // code generation attempt succeeded. |
| 98 bool GenerateCode(); | 98 bool GenerateCode(); |
| 99 | 99 |
| 100 // Finish the code by setting stack height, safepoint, and bailout | 100 // Finish the code by setting stack height, safepoint, and bailout |
| 101 // information on it. | 101 // information on it. |
| 102 void FinishCode(Handle<Code> code); | 102 void FinishCode(Handle<Code> code); |
| 103 | 103 |
| 104 // Deferred code support. | |
| 105 template<int T> | |
| 106 void DoDeferredBinaryOpStub(LTemplateInstruction<1, 2, T>* instr, | |
| 107 Token::Value op); | |
| 108 void DoDeferredNumberTagD(LNumberTagD* instr); | 104 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 109 void DoDeferredNumberTagI(LNumberTagI* instr); | 105 void DoDeferredNumberTagI(LNumberTagI* instr); |
| 110 void DoDeferredTaggedToI(LTaggedToI* instr); | 106 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 111 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 107 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 112 void DoDeferredStackCheck(LStackCheck* instr); | 108 void DoDeferredStackCheck(LStackCheck* instr); |
| 113 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 109 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 114 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 110 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 115 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 111 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 116 Label* map_check); | 112 Label* map_check); |
| 117 | 113 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 LCodeGen* codegen_; | 415 LCodeGen* codegen_; |
| 420 Label entry_; | 416 Label entry_; |
| 421 Label exit_; | 417 Label exit_; |
| 422 Label* external_exit_; | 418 Label* external_exit_; |
| 423 int instruction_index_; | 419 int instruction_index_; |
| 424 }; | 420 }; |
| 425 | 421 |
| 426 } } // namespace v8::internal | 422 } } // namespace v8::internal |
| 427 | 423 |
| 428 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 424 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |