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

Unified Diff: pkg/compiler/lib/src/js_backend/constant_system_javascript.dart

Issue 2620023002: Use elements/types in constants/values (Closed)
Patch Set: Created 3 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
Index: pkg/compiler/lib/src/js_backend/constant_system_javascript.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart
index 40dcd8ff1bd6d2c199bc4337df5502598a8e722e..1571c41cf36605d1de71aec544a3c1993ed1582e 100644
--- a/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart
@@ -320,10 +320,10 @@ class JavaScriptConstantSystem extends ConstantSystem {
@override
ConstantValue createType(Compiler compiler, ResolutionDartType type) {
- return new TypeConstantValue(
- type,
- compiler.backend.backendClasses.typeImplementation
- .computeType(compiler.resolution));
+ ResolutionInterfaceType instanceType = compiler
+ .backend.backendClasses.typeImplementation
+ .computeType(compiler.resolution);
+ return new TypeConstantValue(type, instanceType);
}
// Integer checks report true for -0.0, INFINITY, and -INFINITY. At
@@ -382,7 +382,7 @@ class JavaScriptConstantSystem extends ConstantSystem {
}
bool hasProtoKey = (protoValue != null);
- ResolutionDartType keysType;
+ ResolutionInterfaceType keysType;
if (sourceType.treatAsRaw) {
keysType = commonElements.listType();
} else {

Powered by Google App Engine
This is Rietveld 408576698