Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index b053fc71c5fc33fbd449da41eadfb18e5cb4db4f..01505391b0c63c7ec26170bc6dbaad2db2ed362d 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -34,7 +34,6 @@ |
#include "ast.h" |
#include "compiler.h" |
#include "hydrogen-instructions.h" |
-#include "type-info.h" |
#include "zone.h" |
#include "scopes.h" |
@@ -798,12 +797,10 @@ class TestContext: public AstContext { |
public: |
TestContext(HOptimizedGraphBuilder* owner, |
Expression* condition, |
- TypeFeedbackOracle* oracle, |
HBasicBlock* if_true, |
HBasicBlock* if_false) |
: AstContext(owner, Expression::kTest), |
condition_(condition), |
- oracle_(oracle), |
if_true_(if_true), |
if_false_(if_false) { |
} |
@@ -820,7 +817,6 @@ class TestContext: public AstContext { |
} |
Expression* condition() const { return condition_; } |
- TypeFeedbackOracle* oracle() const { return oracle_; } |
HBasicBlock* if_true() const { return if_true_; } |
HBasicBlock* if_false() const { return if_false_; } |
@@ -830,7 +826,6 @@ class TestContext: public AstContext { |
void BuildBranch(HValue* value); |
Expression* condition_; |
- TypeFeedbackOracle* oracle_; |
HBasicBlock* if_true_; |
HBasicBlock* if_false_; |
}; |
@@ -840,12 +835,10 @@ class FunctionState { |
public: |
FunctionState(HOptimizedGraphBuilder* owner, |
CompilationInfo* info, |
- TypeFeedbackOracle* oracle, |
InliningKind inlining_kind); |
~FunctionState(); |
CompilationInfo* compilation_info() { return compilation_info_; } |
- TypeFeedbackOracle* oracle() { return oracle_; } |
AstContext* call_context() { return call_context_; } |
InliningKind inlining_kind() const { return inlining_kind_; } |
HBasicBlock* function_return() { return function_return_; } |
@@ -871,7 +864,6 @@ class FunctionState { |
HOptimizedGraphBuilder* owner_; |
CompilationInfo* compilation_info_; |
- TypeFeedbackOracle* oracle_; |
// During function inlining, expression context of the call being |
// inlined. NULL when not inlining. |
@@ -1350,9 +1342,6 @@ class HGraphBuilder { |
class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
public: |
- enum BreakType { BREAK, CONTINUE }; |
- enum SwitchType { UNKNOWN_SWITCH, SMI_SWITCH, STRING_SWITCH }; |
- |
// A class encapsulating (lazily-allocated) break and continue blocks for |
// a breakable statement. Separated from BreakAndContinueScope so that it |
// can have a separate lifetime. |
@@ -1397,6 +1386,7 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
BreakAndContinueScope* next() { return next_; } |
// Search the break stack for a break or continue target. |
+ enum BreakType { BREAK, CONTINUE }; |
HBasicBlock* Get(BreakableStatement* stmt, BreakType type, int* drop_extra); |
private: |
@@ -1405,7 +1395,7 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
BreakAndContinueScope* next_; |
}; |
- HOptimizedGraphBuilder(CompilationInfo* info, TypeFeedbackOracle* oracle); |
+ explicit HOptimizedGraphBuilder(CompilationInfo* info); |
virtual bool BuildGraph(); |
@@ -1423,8 +1413,6 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
HBasicBlock* second, |
BailoutId join_id); |
- TypeFeedbackOracle* oracle() const { return function_state()->oracle(); } |
- |
FunctionState* function_state() const { return function_state_; } |
void VisitDeclarations(ZoneList<Declaration*>* declarations); |