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

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

Issue 10969067: Attach positions to methods with interceptors. (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/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index 0b5d695547ae73f3c9bfe4edd4541dd7a1a407ae..45f15b673610ffaabeefaa59eb0fee187b0a8660 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -2103,9 +2103,11 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
HStatic target = new HStatic(staticInterceptor);
add(target);
List<HInstruction> inputs = <HInstruction>[target, receiver];
- push(new HInvokeInterceptor(selector, inputs, !hasGetter));
+ pushWithPosition(new HInvokeInterceptor(selector, inputs, !hasGetter),
+ send);
} else {
- push(new HInvokeDynamicGetter(selector, null, receiver, !hasGetter));
+ pushWithPosition(
+ new HInvokeDynamicGetter(selector, null, receiver, !hasGetter), send);
}
}
@@ -2426,7 +2428,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
visit(node.receiver);
inputs.add(pop());
addGenericSendArgumentsToList(node.arguments, inputs);
- push(new HInvokeInterceptor(selector, inputs));
+ pushWithPosition(new HInvokeInterceptor(selector, inputs), node);
return;
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/source_mapping_test.dart » ('j') | tests/compiler/dart2js/source_mapping_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698