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

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

Issue 11017006: Create and use new change/depends flags for the GVN analysis. (Closed) Base URL: http://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
===================================================================
--- lib/compiler/implementation/ssa/builder.dart (revision 13049)
+++ lib/compiler/implementation/ssa/builder.dart (working copy)
@@ -2181,14 +2181,16 @@
if (methodInterceptionEnabled) {
staticInterceptor = interceptors.getStaticSetInterceptor(setterName);
}
+ bool hasSetter = compiler.world.hasAnyUserDefinedSetter(selector);
if (staticInterceptor != null) {
HStatic target = new HStatic(staticInterceptor);
add(target);
List<HInstruction> inputs = <HInstruction>[target, receiver, value];
addWithPosition(new HInvokeInterceptor(selector, inputs), send);
} else {
- addWithPosition(new HInvokeDynamicSetter(selector, null, receiver, value),
- send);
+ addWithPosition(
+ new HInvokeDynamicSetter(selector, null, receiver, value, !hasSetter),
+ send);
}
stack.add(value);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | lib/compiler/implementation/ssa/nodes.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698