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

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

Issue 10801008: Disable GVN for interceptors and fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | tests/language/gvn_field_access_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 68a91ff249edf311d06b64a909c52eb718ef0981..19b4977b72800fdd696e395fdbf5508f13c7d447 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1271,9 +1271,7 @@ class HInvokeInterceptor extends HInvokeStatic {
void prepareGvn() {
if (isLengthGetterOnStringOrArray()) {
- setUseGvn();
clearAllSideEffects();
- setDependsOnSomething();
} else {
setAllSideEffects();
}
@@ -1304,8 +1302,7 @@ class HFieldGet extends HFieldAccess {
accept(HVisitor visitor) => visitor.visitFieldGet(this);
void prepareGvn() {
- setUseGvn();
- if (!isFinalOrConst) setDependsOnSomething();
+ clearAllSideEffects();
}
int typeCode() => 27;
« no previous file with comments | « no previous file | tests/language/gvn_field_access_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698