| 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/ast/scopes.h" |     7 #include "src/ast/scopes.h" | 
|     8 #include "src/compiler.h" |     8 #include "src/compiler.h" | 
|     9 #include "src/compiler/ast-loop-assignment-analyzer.h" |     9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 
|    10 #include "src/compiler/control-builders.h" |    10 #include "src/compiler/control-builders.h" | 
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   609   BuildThisFunctionVariable(scope->this_function_var()); |   609   BuildThisFunctionVariable(scope->this_function_var()); | 
|   610  |   610  | 
|   611   // Build assignment to {new.target} variable if it is used. |   611   // Build assignment to {new.target} variable if it is used. | 
|   612   BuildNewTargetVariable(scope->new_target_var()); |   612   BuildNewTargetVariable(scope->new_target_var()); | 
|   613  |   613  | 
|   614   // Emit tracing call if requested to do so. |   614   // Emit tracing call if requested to do so. | 
|   615   if (FLAG_trace) { |   615   if (FLAG_trace) { | 
|   616     NewNode(javascript()->CallRuntime(Runtime::kTraceEnter)); |   616     NewNode(javascript()->CallRuntime(Runtime::kTraceEnter)); | 
|   617   } |   617   } | 
|   618  |   618  | 
|   619   // Visit illegal re-declaration and bail out if it exists. |  | 
|   620   if (scope->HasIllegalRedeclaration()) { |  | 
|   621     VisitForEffect(scope->GetIllegalRedeclaration()); |  | 
|   622     return; |  | 
|   623   } |  | 
|   624  |  | 
|   625   // Visit declarations within the function scope. |   619   // Visit declarations within the function scope. | 
|   626   VisitDeclarations(scope->declarations()); |   620   VisitDeclarations(scope->declarations()); | 
|   627  |   621  | 
|   628   // Build a stack-check before the body. |   622   // Build a stack-check before the body. | 
|   629   if (stack_check) { |   623   if (stack_check) { | 
|   630     Node* node = NewNode(javascript()->StackCheck()); |   624     Node* node = NewNode(javascript()->StackCheck()); | 
|   631     PrepareFrameState(node, BailoutId::FunctionEntry()); |   625     PrepareFrameState(node, BailoutId::FunctionEntry()); | 
|   632   } |   626   } | 
|   633  |   627  | 
|   634   // Visit statements in the function body. |   628   // Visit statements in the function body. | 
| (...skipping 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4373     // Phi does not exist yet, introduce one. |  4367     // Phi does not exist yet, introduce one. | 
|  4374     value = NewPhi(inputs, value, control); |  4368     value = NewPhi(inputs, value, control); | 
|  4375     value->ReplaceInput(inputs - 1, other); |  4369     value->ReplaceInput(inputs - 1, other); | 
|  4376   } |  4370   } | 
|  4377   return value; |  4371   return value; | 
|  4378 } |  4372 } | 
|  4379  |  4373  | 
|  4380 }  // namespace compiler |  4374 }  // namespace compiler | 
|  4381 }  // namespace internal |  4375 }  // namespace internal | 
|  4382 }  // namespace v8 |  4376 }  // namespace v8 | 
| OLD | NEW |