Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 909093003: Parsing: Make Scope not know about Isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after
2437 2437
2438 return local_context; 2438 return local_context;
2439 } 2439 }
2440 2440
2441 2441
2442 Node* AstGraphBuilder::BuildLocalBlockContext(Scope* scope) { 2442 Node* AstGraphBuilder::BuildLocalBlockContext(Scope* scope) {
2443 Node* closure = GetFunctionClosure(); 2443 Node* closure = GetFunctionClosure();
2444 2444
2445 // Allocate a new local context. 2445 // Allocate a new local context.
2446 const Operator* op = javascript()->CreateBlockContext(); 2446 const Operator* op = javascript()->CreateBlockContext();
2447 Node* scope_info = jsgraph()->Constant(scope->GetScopeInfo()); 2447 Node* scope_info = jsgraph()->Constant(scope->GetScopeInfo(info_->isolate()));
2448 Node* local_context = NewNode(op, scope_info, closure); 2448 Node* local_context = NewNode(op, scope_info, closure);
2449 2449
2450 return local_context; 2450 return local_context;
2451 } 2451 }
2452 2452
2453 2453
2454 Node* AstGraphBuilder::BuildArgumentsObject(Variable* arguments) { 2454 Node* AstGraphBuilder::BuildArgumentsObject(Variable* arguments) {
2455 if (arguments == NULL) return NULL; 2455 if (arguments == NULL) return NULL;
2456 2456
2457 // Allocate and initialize a new arguments object. 2457 // Allocate and initialize a new arguments object.
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 Node* dead_node = graph()->NewNode(common()->Dead()); 3131 Node* dead_node = graph()->NewNode(common()->Dead());
3132 dead_control_.set(dead_node); 3132 dead_control_.set(dead_node);
3133 return dead_node; 3133 return dead_node;
3134 } 3134 }
3135 return dead_control_.get(); 3135 return dead_control_.get();
3136 } 3136 }
3137 3137
3138 } // namespace compiler 3138 } // namespace compiler
3139 } // namespace internal 3139 } // namespace internal
3140 } // namespace v8 3140 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698