| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 93664e963dfe36c8cd7595369cda91ea7e95a845..e14799a24c8c388d2404eba0c4dffb696d5388d9 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -453,9 +453,6 @@ class AstContext {
|
| // the instruction as value.
|
| virtual void ReturnInstruction(HInstruction* instr, int ast_id) = 0;
|
|
|
| - void set_for_typeof(bool for_typeof) { for_typeof_ = for_typeof; }
|
| - bool is_for_typeof() { return for_typeof_; }
|
| -
|
| protected:
|
| AstContext(HGraphBuilder* owner, Expression::Context kind);
|
| virtual ~AstContext();
|
| @@ -472,7 +469,6 @@ class AstContext {
|
| HGraphBuilder* owner_;
|
| Expression::Context kind_;
|
| AstContext* outer_;
|
| - bool for_typeof_;
|
| };
|
|
|
|
|
| @@ -548,8 +544,6 @@ class FunctionState BASE_EMBEDDED {
|
| test_context_ = NULL;
|
| }
|
|
|
| - FunctionState* outer() { return outer_; }
|
| -
|
| private:
|
| HGraphBuilder* owner_;
|
|
|
| @@ -741,7 +735,6 @@ class HGraphBuilder: public AstVisitor {
|
| void Bind(Variable* var, HValue* value) { environment()->Bind(var, value); }
|
|
|
| void VisitForValue(Expression* expr);
|
| - void VisitForTypeOf(Expression* expr);
|
| void VisitForEffect(Expression* expr);
|
| void VisitForControl(Expression* expr,
|
| HBasicBlock* true_block,
|
| @@ -777,13 +770,9 @@ class HGraphBuilder: public AstVisitor {
|
| HBasicBlock* CreateLoopHeaderBlock();
|
|
|
| // Helpers for flow graph construction.
|
| - enum GlobalPropertyAccess {
|
| - kUseCell,
|
| - kUseGeneric
|
| - };
|
| - GlobalPropertyAccess LookupGlobalProperty(Variable* var,
|
| - LookupResult* lookup,
|
| - bool is_store);
|
| + void LookupGlobalPropertyCell(Variable* var,
|
| + LookupResult* lookup,
|
| + bool is_store);
|
|
|
| bool TryArgumentsAccess(Property* expr);
|
| bool TryCallApply(Call* expr);
|
|
|