Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 6fa3d1b9ff32cbafe55d839d7c429eeb5380c0db..0d537de0c334b8dfd2a636a8482c3c93811f0e4b 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -244,10 +244,11 @@ class HLoopInformation: public ZoneObject { |
class BoundsCheckTable; |
class HGraph: public ZoneObject { |
public: |
- HGraph(CompilationInfo* info, Zone* zone); |
+ explicit HGraph(CompilationInfo* info); |
Isolate* isolate() { return isolate_; } |
Zone* zone() const { return zone_; } |
+ CompilationInfo* info() const { return info_; } |
const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } |
const ZoneList<HPhi*>* phi_list() const { return phi_list_; } |
@@ -280,7 +281,7 @@ class HGraph: public ZoneObject { |
void CollectPhis(); |
- Handle<Code> Compile(CompilationInfo* info, Zone* zone); |
+ Handle<Code> Compile(); |
void set_undefined_constant(HConstant* constant) { |
undefined_constant_.set(constant); |
@@ -388,6 +389,7 @@ class HGraph: public ZoneObject { |
SetOncePointer<HBasicBlock> osr_loop_entry_; |
SetOncePointer<ZoneList<HUnknownOSRValue*> > osr_values_; |
+ CompilationInfo* info_; |
Zone* zone_; |
bool is_recursive_; |
@@ -838,7 +840,7 @@ class HGraphBuilder: public AstVisitor { |
BreakAndContinueScope* next_; |
}; |
- HGraphBuilder(CompilationInfo* info, TypeFeedbackOracle* oracle, Zone* zone); |
+ HGraphBuilder(CompilationInfo* info, TypeFeedbackOracle* oracle); |
HGraph* CreateGraph(); |