| 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/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 return graph()->NewNode(op, parameters_node_, locals_node_, stack_node_, | 228 return graph()->NewNode(op, parameters_node_, locals_node_, stack_node_, |
| 229 GetContext(), | 229 GetContext(), |
| 230 builder()->jsgraph()->UndefinedConstant()); | 230 builder()->jsgraph()->UndefinedConstant()); |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own, | 234 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own, |
| 235 Expression::Context kind) | 235 Expression::Context kind) |
| 236 : kind_(kind), owner_(own), outer_(own->ast_context()) { | 236 : kind_(kind), owner_(own), outer_(own->ast_context()) { |
| 237 owner()->set_ast_context(this); // Push. | 237 owner()->set_ast_context(this); // Push. |
| 238 #ifdef DEBUG | 238 #if DCHECK_IS_ON |
| 239 original_height_ = environment()->stack_height(); | 239 original_height_ = environment()->stack_height(); |
| 240 #endif | 240 #endif |
| 241 } | 241 } |
| 242 | 242 |
| 243 | 243 |
| 244 AstGraphBuilder::AstContext::~AstContext() { | 244 AstGraphBuilder::AstContext::~AstContext() { |
| 245 owner()->set_ast_context(outer_); // Pop. | 245 owner()->set_ast_context(outer_); // Pop. |
| 246 } | 246 } |
| 247 | 247 |
| 248 | 248 |
| (...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 | 2228 |
| 2229 BitVector* AstGraphBuilder::GetVariablesAssignedInLoop( | 2229 BitVector* AstGraphBuilder::GetVariablesAssignedInLoop( |
| 2230 IterationStatement* stmt) { | 2230 IterationStatement* stmt) { |
| 2231 if (loop_assignment_analysis_ == NULL) return NULL; | 2231 if (loop_assignment_analysis_ == NULL) return NULL; |
| 2232 return loop_assignment_analysis_->GetVariablesAssignedInLoop(stmt); | 2232 return loop_assignment_analysis_->GetVariablesAssignedInLoop(stmt); |
| 2233 } | 2233 } |
| 2234 | 2234 |
| 2235 } // namespace compiler | 2235 } // namespace compiler |
| 2236 } // namespace internal | 2236 } // namespace internal |
| 2237 } // namespace v8 | 2237 } // namespace v8 |
| OLD | NEW |