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

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

Issue 12051013: Cleanup how we handle side effects in HInstruction and put the right flags for HIs, modulo, truncat… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 17440)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -2623,9 +2623,9 @@
checks.add(call);
index++;
});
- instruction = new HIs.withArgumentChecks(type, expression, checks);
+ instruction = new HIs(type, <HInstruction>[expression]..addAll(checks));
} else {
- instruction = new HIs(type, expression);
+ instruction = new HIs(type, <HInstruction>[expression]);
}
if (isNot) {
add(instruction);
@@ -4398,7 +4398,8 @@
compiler.cancel('On with unresolved type',
node: catchBlock.type);
}
- HInstruction condition = new HIs(type, unwrappedException);
+ HInstruction condition =
+ new HIs(type, <HInstruction>[unwrappedException]);
push(condition);
}
else {
@@ -4416,7 +4417,8 @@
if (type == null) {
compiler.cancel('Catch with unresolved type', node: catchBlock);
}
- condition = new HIs(type, unwrappedException, nullOk: true);
+ condition =
+ new HIs(type, <HInstruction>[unwrappedException], nullOk: true);
push(condition);
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698