Index: src/arm/lithium-codegen-arm.h |
diff --git a/src/arm/lithium-codegen-arm.h b/src/arm/lithium-codegen-arm.h |
index c1041326b4b3b0aa73feecabd0fb91ff0aa0f63d..7df1070310b34baa05882623eb9b2c8d5371eaa4 100644 |
--- a/src/arm/lithium-codegen-arm.h |
+++ b/src/arm/lithium-codegen-arm.h |
@@ -80,6 +80,15 @@ class LCodeGen BASE_EMBEDDED { |
Heap* heap() const { return isolate()->heap(); } |
Zone* zone() const { return zone_; } |
+ // TODO(svenpanne) Use this consistently. |
+ int LookupDestination(int block_id) const { |
+ return chunk()->LookupDestination(block_id); |
+ } |
+ |
+ bool IsNextEmittedBlock(int block_id) const { |
+ return LookupDestination(block_id) == GetNextEmittedBlock(); |
+ } |
+ |
bool NeedsEagerFrame() const { |
return GetStackSlotCount() > 0 || |
info()->is_non_deferred_calling() || |
@@ -196,12 +205,12 @@ class LCodeGen BASE_EMBEDDED { |
LPlatformChunk* chunk() const { return chunk_; } |
Scope* scope() const { return scope_; } |
- HGraph* graph() const { return chunk_->graph(); } |
+ HGraph* graph() const { return chunk()->graph(); } |
Register scratch0() { return r9; } |
DwVfpRegister double_scratch0() { return kScratchDoubleReg; } |
- int GetNextEmittedBlock(); |
+ int GetNextEmittedBlock() const; |
LInstruction* GetNextInstruction(); |
void EmitClassOfTest(Label* if_true, |