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

Unified Diff: dart/tests/compiler/dart2js/mock_compiler.dart

Issue 12033003: Deferred (aka lazy) loading of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments and use IsolateNatives.thisScript Created 7 years, 10 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: dart/tests/compiler/dart2js/mock_compiler.dart
diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
index 39ab91232eb9da882767195b047b918d494137bd..7ddd2e45d82e26ca2a238b6982a3cd7540ee2165 100644
--- a/dart/tests/compiler/dart2js/mock_compiler.dart
+++ b/dart/tests/compiler/dart2js/mock_compiler.dart
@@ -25,6 +25,10 @@ import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart';
+import '../../../sdk/lib/_internal/compiler/implementation/deferred_load.dart'
+ show DeferredLoadTask;
+
+
class WarningMessage {
Node node;
Message message;
@@ -167,6 +171,8 @@ class MockCompiler extends Compiler {
// Our unit tests check code generation output that is affected by
// inlining support.
disableInlining = true;
+
+ deferredLoadTask = new MockDeferredLoadTask(this);
}
/**
@@ -342,3 +348,11 @@ class CollectingTreeElements extends TreeElementMapping {
map.remove(node);
}
}
+
+class MockDeferredLoadTask extends DeferredLoadTask {
+ MockDeferredLoadTask(Compiler compiler) : super(compiler);
+
+ void registerMainApp(LibraryElement mainApp) {
+ // Do nothing.
+ }
+}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | dart/tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698