Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| index 1b26dc04087466e5ee5d4ed71e3d354aa4decb78..74d35f051f831b30238c4f0ff9f699aff7afc170 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
| @@ -45,15 +45,6 @@ class RuntimeTypes { |
| Set<ClassElement> allInstantiatedArguments; |
| Set<ClassElement> checkedArguments; |
| - bool isJsNative(Element element) { |
| - return (element == compiler.intClass || |
| - element == compiler.boolClass || |
| - element == compiler.numClass || |
| - element == compiler.doubleClass || |
| - element == compiler.stringClass || |
| - element == compiler.listClass); |
| - } |
| - |
| void registerRtiDependency(Element element, Element dependency) { |
| // We're not dealing with typedef for now. |
| if (!element.isClass() || !dependency.isClass()) return; |
| @@ -635,7 +626,7 @@ class TypeRepresentationGenerator extends DartTypeVisitor { |
| } |
| jsAst.Expression getJavaScriptClassName(Element element) { |
| - return namer.elementAccess(backend.getImplementationClass(element)); |
| + return namer.elementAccess(element); |
| } |
| visit(DartType type) { |
| @@ -782,9 +773,7 @@ class ArgumentCollector extends DartTypeVisitor { |
| } |
| visitInterfaceType(InterfaceType type, bool isTypeArgument) { |
| - if (isTypeArgument) { |
| - classes.add(backend.getImplementationClass(type.element)); |
| - } |
| + if (isTypeArgument) classes.add(type.element); |
| type.visitChildren(this, true); |
| } |
| @@ -824,9 +813,7 @@ class FunctionArgumentCollector extends DartTypeVisitor { |
| } |
| visitInterfaceType(InterfaceType type, bool inFunctionType) { |
| - if (inFunctionType) { |
| - classes.add(backend.getImplementationClass(type.element)); |
| - } |
| + if (inFunctionType) classes.add(type.element); |
|
karlklose
2014/04/28 14:04:25
Please use a block.
floitsch
2014/04/30 19:04:38
Done.
|
| type.visitChildren(this, inFunctionType); |
| } |