| Index: src/ia32/lithium-codegen-ia32.h
|
| diff --git a/src/ia32/lithium-codegen-ia32.h b/src/ia32/lithium-codegen-ia32.h
|
| index a59b36827c4b807a02115aa50f6c42e356205ccd..345e945f98dc7dc2f802d2d5b66ecbd127ab373f 100644
|
| --- a/src/ia32/lithium-codegen-ia32.h
|
| +++ b/src/ia32/lithium-codegen-ia32.h
|
| @@ -84,6 +84,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() ||
|
| @@ -189,9 +198,9 @@ 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(); }
|
|
|
| - int GetNextEmittedBlock();
|
| + int GetNextEmittedBlock() const;
|
|
|
| void EmitClassOfTest(Label* if_true,
|
| Label* if_false,
|
|
|