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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 14018036: Remove holders for runtime type information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type annotation. Created 7 years, 8 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: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 7feb253ee3c6375dd5dbdd799c38e770855572b9..ab280d227d93ed1a643935f02588fd5d6fea8723 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -1535,6 +1535,24 @@ class JavaScriptBackend extends Backend {
return fieldTypes.optimisticFieldType(element);
}
+ Element getImplementationClass(Element element) {
+ if (element == compiler.intClass) {
+ return jsIntClass;
+ } else if (element == compiler.boolClass) {
+ return jsBoolClass;
+ } else if (element == compiler.numClass) {
+ return jsNumberClass;
+ } else if (element == compiler.doubleClass) {
+ return jsDoubleClass;
+ } else if (element == compiler.stringClass) {
+ return jsStringClass;
+ } else if (element == compiler.listClass) {
+ return jsArrayClass;
+ } else {
+ return element;
+ }
+ }
+
/**
* Returns the checked mode helper that will be needed to do a type check/type
* cast on [type] at runtime. Note that this method is being called both by

Powered by Google App Engine
This is Rietveld 408576698