| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void FinishCode(Handle<Code> code); | 146 void FinishCode(Handle<Code> code); |
| 147 | 147 |
| 148 // Deferred code support. | 148 // Deferred code support. |
| 149 void DoDeferredNumberTagD(LNumberTagD* instr); | 149 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 150 | 150 |
| 151 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; | 151 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; |
| 152 void DoDeferredNumberTagI(LInstruction* instr, | 152 void DoDeferredNumberTagI(LInstruction* instr, |
| 153 LOperand* value, | 153 LOperand* value, |
| 154 IntegerSignedness signedness); | 154 IntegerSignedness signedness); |
| 155 | 155 |
| 156 void DoDeferredTaggedToI(LTaggedToI* instr); | 156 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
| 157 void DoDeferredTaggedToINoSSE2(LTaggedToINoSSE2* instr); | |
| 158 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 157 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 159 void DoDeferredStackCheck(LStackCheck* instr); | 158 void DoDeferredStackCheck(LStackCheck* instr); |
| 160 void DoDeferredRandom(LRandom* instr); | 159 void DoDeferredRandom(LRandom* instr); |
| 161 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 160 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 162 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 161 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 163 void DoDeferredAllocate(LAllocate* instr); | 162 void DoDeferredAllocate(LAllocate* instr); |
| 164 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 163 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 165 Label* map_check); | 164 Label* map_check); |
| 166 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 165 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
| 167 | 166 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 codegen->AddDeferredCode(this); | 486 codegen->AddDeferredCode(this); |
| 488 } | 487 } |
| 489 | 488 |
| 490 virtual ~LDeferredCode() { } | 489 virtual ~LDeferredCode() { } |
| 491 virtual void Generate() = 0; | 490 virtual void Generate() = 0; |
| 492 virtual LInstruction* instr() = 0; | 491 virtual LInstruction* instr() = 0; |
| 493 | 492 |
| 494 void SetExit(Label* exit) { external_exit_ = exit; } | 493 void SetExit(Label* exit) { external_exit_ = exit; } |
| 495 Label* entry() { return &entry_; } | 494 Label* entry() { return &entry_; } |
| 496 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } | 495 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } |
| 496 Label* done() { return &done_; } |
| 497 int instruction_index() const { return instruction_index_; } | 497 int instruction_index() const { return instruction_index_; } |
| 498 | 498 |
| 499 protected: | 499 protected: |
| 500 LCodeGen* codegen() const { return codegen_; } | 500 LCodeGen* codegen() const { return codegen_; } |
| 501 MacroAssembler* masm() const { return codegen_->masm(); } | 501 MacroAssembler* masm() const { return codegen_->masm(); } |
| 502 | 502 |
| 503 private: | 503 private: |
| 504 LCodeGen* codegen_; | 504 LCodeGen* codegen_; |
| 505 Label entry_; | 505 Label entry_; |
| 506 Label exit_; | 506 Label exit_; |
| 507 Label* external_exit_; | 507 Label* external_exit_; |
| 508 Label done_; |
| 508 int instruction_index_; | 509 int instruction_index_; |
| 509 }; | 510 }; |
| 510 | 511 |
| 511 } } // namespace v8::internal | 512 } } // namespace v8::internal |
| 512 | 513 |
| 513 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 514 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |