Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
4366 } // namespace compiler 4376 } // namespace compiler
4367 } // namespace internal 4377 } // namespace internal
4368 } // namespace v8 4378 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698