| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |