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/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 4345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4356 NodeProperties::ChangeOp( | 4356 NodeProperties::ChangeOp( |
4357 value, common()->Phi(MachineRepresentation::kTagged, inputs)); | 4357 value, common()->Phi(MachineRepresentation::kTagged, inputs)); |
4358 } else if (value != other) { | 4358 } else if (value != other) { |
4359 // Phi does not exist yet, introduce one. | 4359 // Phi does not exist yet, introduce one. |
4360 value = NewPhi(inputs, value, control); | 4360 value = NewPhi(inputs, value, control); |
4361 value->ReplaceInput(inputs - 1, other); | 4361 value->ReplaceInput(inputs - 1, other); |
4362 } | 4362 } |
4363 return value; | 4363 return value; |
4364 } | 4364 } |
4365 | 4365 |
| 4366 AstGraphBuilderWithPositions::AstGraphBuilderWithPositions( |
| 4367 Zone* local_zone, CompilationInfo* info, JSGraph* jsgraph, |
| 4368 float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, |
| 4369 TypeHintAnalysis* type_hint_analysis, SourcePositionTable* source_positions, |
| 4370 int inlining_id) |
| 4371 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, |
| 4372 loop_assignment, type_hint_analysis), |
| 4373 source_positions_(source_positions), |
| 4374 start_position_(info->shared_info()->start_position(), inlining_id), |
| 4375 inlining_id_(inlining_id) {} |
| 4376 |
4366 } // namespace compiler | 4377 } // namespace compiler |
4367 } // namespace internal | 4378 } // namespace internal |
4368 } // namespace v8 | 4379 } // namespace v8 |
OLD | NEW |