Index: src/arm/lithium-arm.h |
=================================================================== |
--- src/arm/lithium-arm.h (revision 7669) |
+++ src/arm/lithium-arm.h (working copy) |
@@ -407,17 +407,17 @@ |
}; |
-class LLabel: public LTemplateInstruction<0, 0, 0> { |
+class LLabel: public LGap { |
public: |
explicit LLabel(HBasicBlock* block) |
- : block_(block), replacement_(NULL) { } |
+ : LGap(block), replacement_(NULL) { } |
DECLARE_CONCRETE_INSTRUCTION(Label, "label") |
virtual void PrintDataTo(StringStream* stream); |
- int block_id() const { return block_->block_id(); } |
- bool is_loop_header() const { return block_->IsLoopHeader(); } |
+ int block_id() const { return block()->block_id(); } |
+ bool is_loop_header() const { return block()->IsLoopHeader(); } |
Label* label() { return &label_; } |
LLabel* replacement() const { return replacement_; } |
void set_replacement(LLabel* label) { replacement_ = label; } |
@@ -425,7 +425,6 @@ |
private: |
Label label_; |
- HBasicBlock* block_; |
LLabel* replacement_; |
}; |
@@ -2023,10 +2022,6 @@ |
int first_instruction = block->first_instruction_index(); |
return LLabel::cast(instructions_[first_instruction]); |
} |
- LGap* GetFirstGap(HBasicBlock* block) const { |
- int first_instruction = block->first_instruction_index(); |
- return LGap::cast(instructions_[first_instruction + 1]); |
- } |
int LookupDestination(int block_id) const { |
LLabel* cur = GetLabel(block_id); |
while (cur->replacement() != NULL) { |