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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10828413: Only add JS once, and not to very single patched library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index 02bdebe1cdeedb7544de193cb0afd26726f0a8f7..417b21d84495f3b53d08d2c4ba5a54d45ebd3ca5 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -379,8 +379,6 @@ class Compiler implements DiagnosticListener {
Uri patchUri = resolvePatchUri(dartLibraryPath);
if (patchUri !== null) {
patchParser.patchLibrary(patchUri, library);
- // We allow foreign functions in patched libraries.
- addForeignFunctions(library); // Is safe even if already added.
// TODO(lrn): Make this lazy.
applyClassPatches(library);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/native_handler.dart » ('j') | lib/compiler/implementation/native_handler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698