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

Unified Diff: dart/frog/leg/compiler.dart

Issue 9568008: Do not allow native syntax on all libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | dart/frog/leg/native_handler.dart » ('j') | dart/frog/leg/native_handler.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/compiler.dart
===================================================================
--- dart/frog/leg/compiler.dart (revision 4858)
+++ dart/frog/leg/compiler.dart (working copy)
@@ -74,6 +74,7 @@
SsaCodeGeneratorTask generator;
CodeEmitterTask emitter;
CompileTimeConstantHandler compileTimeConstantHandler;
+ native.NativeHandler nativeHandler;
static final SourceString MAIN = const SourceString('main');
static final SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
@@ -96,9 +97,10 @@
optimizer = new SsaOptimizerTask(this);
generator = new SsaCodeGeneratorTask(this);
emitter = new CodeEmitterTask(this);
+ nativeHandler = new native.NativeHandler(this);
tasks = [scanner, dietParser, parser, resolver, checker,
builder, optimizer, generator,
- emitter, compileTimeConstantHandler];
+ emitter, compileTimeConstantHandler, nativeHandler];
}
void ensure(bool condition) {
@@ -251,7 +253,7 @@
void runCompiler(Script script) {
scanBuiltinLibraries();
mainApp = new LibraryElement(script);
- native.checkNativeSupport(this, mainApp, null);
+ nativeHandler.checkNativeSupport(mainApp, null);
Element element;
withCurrentElement(mainApp, () {
« no previous file with comments | « no previous file | dart/frog/leg/native_handler.dart » ('j') | dart/frog/leg/native_handler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698