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