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

Side by Side Diff: dart/tests/compiler/dart2js/mock_compiler.dart

Issue 16162005: Add compileAll internal compiler flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Issues discovered during testing Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool disableTypeInference: false, 197 bool disableTypeInference: false,
198 bool analyzeAll: false, 198 bool analyzeAll: false,
199 bool analyzeOnly: false, 199 bool analyzeOnly: false,
200 bool preserveComments: false}) 200 bool preserveComments: false})
201 : warnings = [], errors = [], 201 : warnings = [], errors = [],
202 sourceFiles = new Map<String, SourceFile>(), 202 sourceFiles = new Map<String, SourceFile>(),
203 super(enableTypeAssertions: enableTypeAssertions, 203 super(enableTypeAssertions: enableTypeAssertions,
204 enableMinification: enableMinification, 204 enableMinification: enableMinification,
205 enableConcreteTypeInference: enableConcreteTypeInference, 205 enableConcreteTypeInference: enableConcreteTypeInference,
206 maxConcreteTypeSize: maxConcreteTypeSize, 206 maxConcreteTypeSize: maxConcreteTypeSize,
207 disableTypeInference: disableTypeInference, 207 disableTypeInferenceFlag: disableTypeInference,
208 analyzeAll: analyzeAll, 208 analyzeAllFlag: analyzeAll,
209 analyzeOnly: analyzeOnly, 209 analyzeOnly: analyzeOnly,
210 preserveComments: preserveComments) { 210 preserveComments: preserveComments) {
211 coreLibrary = createLibrary("core", coreSource); 211 coreLibrary = createLibrary("core", coreSource);
212 // We need to set the assert method to avoid calls with a 'null' 212 // We need to set the assert method to avoid calls with a 'null'
213 // target being interpreted as a call to assert. 213 // target being interpreted as a call to assert.
214 jsHelperLibrary = createLibrary("helper", helperSource); 214 jsHelperLibrary = createLibrary("helper", helperSource);
215 foreignLibrary = createLibrary("foreign", FOREIGN_LIBRARY); 215 foreignLibrary = createLibrary("foreign", FOREIGN_LIBRARY);
216 interceptorsLibrary = createLibrary("interceptors", interceptorsSource); 216 interceptorsLibrary = createLibrary("interceptors", interceptorsSource);
217 isolateHelperLibrary = createLibrary("isolate_helper", isolateHelperSource); 217 isolateHelperLibrary = createLibrary("isolate_helper", isolateHelperSource);
218 218
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 } 430 }
431 } 431 }
432 432
433 class MockDeferredLoadTask extends DeferredLoadTask { 433 class MockDeferredLoadTask extends DeferredLoadTask {
434 MockDeferredLoadTask(Compiler compiler) : super(compiler); 434 MockDeferredLoadTask(Compiler compiler) : super(compiler);
435 435
436 void registerMainApp(LibraryElement mainApp) { 436 void registerMainApp(LibraryElement mainApp) {
437 // Do nothing. 437 // Do nothing.
438 } 438 }
439 } 439 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698