Index: src/x64/lithium-codegen-x64.h |
=================================================================== |
--- src/x64/lithium-codegen-x64.h (revision 9418) |
+++ src/x64/lithium-codegen-x64.h (working copy) |
@@ -346,16 +346,20 @@ |
class LDeferredCode: public ZoneObject { |
public: |
explicit LDeferredCode(LCodeGen* codegen) |
- : codegen_(codegen), external_exit_(NULL) { |
+ : codegen_(codegen), |
+ external_exit_(NULL), |
+ instruction_index_(codegen->current_instruction_) { |
codegen->AddDeferredCode(this); |
} |
virtual ~LDeferredCode() { } |
virtual void Generate() = 0; |
+ virtual LInstruction* instr() = 0; |
void SetExit(Label *exit) { external_exit_ = exit; } |
Label* entry() { return &entry_; } |
Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } |
+ int instruction_index() const { return instruction_index_; } |
protected: |
LCodeGen* codegen() const { return codegen_; } |
@@ -366,6 +370,7 @@ |
Label entry_; |
Label exit_; |
Label* external_exit_; |
+ int instruction_index_; |
}; |
} } // namespace v8::internal |