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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10915122: Fix source locations for inlined and patched functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 625dd497bf58452aaebba0cfe7f0bca18955c522..9437def8446a62294dd437acb820c6acd10ac7e6 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -741,7 +741,7 @@ class HBasicBlock extends HInstructionList implements Hashable {
class HInstruction implements Hashable {
Element sourceElement;
- Token sourcePosition;
+ SourceFileLocation sourcePosition;
final int id;
static int idCounter;
@@ -2728,7 +2728,8 @@ class HLoopBlockInformation implements HStatementInformation {
final HExpressionInformation updates;
final TargetElement target;
final List<LabelElement> labels;
- final Node sourcePosition;
+ final SourceFileLocation sourcePosition;
+ final SourceFileLocation endSourcePosition;
HLoopBlockInformation(this.kind,
this.initializer,
@@ -2737,7 +2738,8 @@ class HLoopBlockInformation implements HStatementInformation {
this.updates,
this.target,
this.labels,
- this.sourcePosition);
+ this.sourcePosition,
+ this.endSourcePosition);
HBasicBlock get start {
if (initializer !== null) return initializer.start;

Powered by Google App Engine
This is Rietveld 408576698