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

Unified Diff: sdk/lib/_internal/compiler/implementation/native_handler.dart

Issue 11438044: Remove some warnings and errors from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dead code. Created 8 years 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/native_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/native_handler.dart b/sdk/lib/_internal/compiler/implementation/native_handler.dart
index 9ab2ed571eefd6cf1115374c013e09551bac57ef..c6ae7865ada41e198f38e3097d570b635c7f3c22 100644
--- a/sdk/lib/_internal/compiler/implementation/native_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/native_handler.dart
@@ -794,19 +794,6 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
Compiler compiler = builder.compiler;
FunctionElement element = builder.work.element;
NativeEmitter nativeEmitter = builder.emitter.nativeEmitter;
- // If what we're compiling is a getter named 'typeName' and the native
- // class is named 'DOMType', we generate a call to the typeNameOf
- // function attached on the isolate.
- // The DOM classes assume that their 'typeName' property, which is
- // not a JS property on the DOM types, returns the type name.
- if (element.name == const SourceString('typeName')
- && element.isGetter()
- && nativeEmitter.toNativeName(element.getEnclosingClass()) == 'DOMType') {
- Element helper =
- compiler.findHelper(const SourceString('getTypeNameOf'));
- builder.pushInvokeHelper1(helper, builder.localsHandler.readThis());
- builder.close(new HReturn(builder.pop())).addSuccessor(builder.graph.exit);
- }
HInstruction convertDartClosure(Element parameter, FunctionType type) {
HInstruction local = builder.localsHandler.readLocal(parameter);
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698