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

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, 2 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
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
===================================================================
--- lib/compiler/implementation/ssa/builder.dart (revision 13214)
+++ lib/compiler/implementation/ssa/builder.dart (working copy)
@@ -2199,14 +2199,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698