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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 1334203002: Compute Compiler.proxyConstant on demand. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 795b510fbc31ae0b60e76390e1eb499b5c97612b..eeb12c5e0ad154d4b5c420457318d9b917424894 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -268,9 +268,11 @@ class SsaInstructionSimplifier extends HBaseVisitor
ClassWorld classWorld = compiler.world;
TypeMask resultType = backend.positiveIntType;
// If we already have computed a more specific type, keep that type.
- if (actualType.satisfies(backend.jsUInt31Class, classWorld)) {
+ if (HInstruction.isInstanceOf(
+ actualType, backend.jsUInt31Class, classWorld)) {
resultType = backend.uint31Type;
- } else if (actualType.satisfies(backend.jsUInt32Class, classWorld)) {
+ } else if (HInstruction.isInstanceOf(
+ actualType, backend.jsUInt32Class, classWorld)) {
resultType = backend.uint32Type;
}
HFieldGet result = new HFieldGet(

Powered by Google App Engine
This is Rietveld 408576698