Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index da770b81965c542ffd490f42be806d6d5fe66698..b01016cbeec05f47943d6bbdba1d82c0848436c9 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1061,14 +1061,8 @@ void AstGraphBuilder::VisitReturnStatement(ReturnStatement* stmt) { |
void AstGraphBuilder::VisitWithStatement(WithStatement* stmt) { |
- VisitForValue(stmt->expression()); |
- Node* value = environment()->Pop(); |
- Node* object = BuildToObject(value, stmt->ToObjectId()); |
- Handle<ScopeInfo> scope_info = stmt->scope()->scope_info(); |
- const Operator* op = javascript()->CreateWithContext(scope_info); |
- Node* context = NewNode(op, object, GetFunctionClosureForContext()); |
- PrepareFrameState(context, stmt->EntryId()); |
- VisitInScope(stmt->statement(), stmt->scope(), context); |
+ // Dynamic scoping is supported only by going through Ignition first. |
+ UNREACHABLE(); |
} |
@@ -2475,12 +2469,6 @@ void AstGraphBuilder::VisitIfNotNull(Statement* stmt) { |
} |
-void AstGraphBuilder::VisitInScope(Statement* stmt, Scope* s, Node* context) { |
- ContextScope scope(this, s, context); |
- DCHECK(s->declarations()->is_empty()); |
- Visit(stmt); |
-} |
- |
void AstGraphBuilder::VisitIterationBody(IterationStatement* stmt, |
LoopBuilder* loop, |
BailoutId stack_check_id) { |