| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void FinishCode(Handle<Code> code); | 156 void FinishCode(Handle<Code> code); |
| 157 | 157 |
| 158 // Deferred code support. | 158 // Deferred code support. |
| 159 void DoDeferredNumberTagD(LNumberTagD* instr); | 159 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 160 | 160 |
| 161 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 161 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
| 162 void DoDeferredNumberTagI(LInstruction* instr, | 162 void DoDeferredNumberTagI(LInstruction* instr, |
| 163 LOperand* value, | 163 LOperand* value, |
| 164 IntegerSignedness signedness); | 164 IntegerSignedness signedness); |
| 165 | 165 |
| 166 void DoDeferredTaggedToI(LTaggedToI* instr); | 166 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
| 167 void DoDeferredTaggedToINoSSE2(LTaggedToINoSSE2* instr); | |
| 168 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 167 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 169 void DoDeferredStackCheck(LStackCheck* instr); | 168 void DoDeferredStackCheck(LStackCheck* instr); |
| 170 void DoDeferredRandom(LRandom* instr); | 169 void DoDeferredRandom(LRandom* instr); |
| 171 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 170 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 172 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 171 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 173 void DoDeferredAllocate(LAllocate* instr); | 172 void DoDeferredAllocate(LAllocate* instr); |
| 174 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 173 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 175 Label* map_check); | 174 Label* map_check); |
| 176 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 175 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
| 177 | 176 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 codegen->AddDeferredCode(this); | 534 codegen->AddDeferredCode(this); |
| 536 } | 535 } |
| 537 | 536 |
| 538 virtual ~LDeferredCode() {} | 537 virtual ~LDeferredCode() {} |
| 539 virtual void Generate() = 0; | 538 virtual void Generate() = 0; |
| 540 virtual LInstruction* instr() = 0; | 539 virtual LInstruction* instr() = 0; |
| 541 | 540 |
| 542 void SetExit(Label* exit) { external_exit_ = exit; } | 541 void SetExit(Label* exit) { external_exit_ = exit; } |
| 543 Label* entry() { return &entry_; } | 542 Label* entry() { return &entry_; } |
| 544 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } | 543 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } |
| 544 Label* done() { return &done_; } |
| 545 int instruction_index() const { return instruction_index_; } | 545 int instruction_index() const { return instruction_index_; } |
| 546 | 546 |
| 547 protected: | 547 protected: |
| 548 LCodeGen* codegen() const { return codegen_; } | 548 LCodeGen* codegen() const { return codegen_; } |
| 549 MacroAssembler* masm() const { return codegen_->masm(); } | 549 MacroAssembler* masm() const { return codegen_->masm(); } |
| 550 | 550 |
| 551 private: | 551 private: |
| 552 LCodeGen* codegen_; | 552 LCodeGen* codegen_; |
| 553 Label entry_; | 553 Label entry_; |
| 554 Label exit_; | 554 Label exit_; |
| 555 Label* external_exit_; | 555 Label* external_exit_; |
| 556 Label done_; |
| 556 int instruction_index_; | 557 int instruction_index_; |
| 557 }; | 558 }; |
| 558 | 559 |
| 559 } } // namespace v8::internal | 560 } } // namespace v8::internal |
| 560 | 561 |
| 561 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 562 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |