| 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
|
|
|