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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 void scanBuiltinLibraries() { 728 void scanBuiltinLibraries() {
729 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); 729 jsHelperLibrary = scanBuiltinLibrary('_js_helper');
730 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); 730 interceptorsLibrary = scanBuiltinLibrary('_interceptors');
731 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); 731 foreignLibrary = scanBuiltinLibrary('_foreign_helper');
732 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); 732 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper');
733 // The helper library does not use the native language extension, 733 // The helper library does not use the native language extension,
734 // so we manually set the native classes this library defines. 734 // so we manually set the native classes this library defines.
735 // TODO(ngeoffray): Enable annotations on these classes. 735 // TODO(ngeoffray): Enable annotations on these classes.
736 ClassElement cls = 736 ClassElement cls =
737 isolateHelperLibrary.find(const SourceString('_WorkerStub')); 737 isolateHelperLibrary.find(const SourceString('_WorkerStub'));
738 cls.setNative('"*Worker"'); 738 cls.setNative('"Worker"');
739 739
740 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); 740 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper'));
741 identicalFunction = coreLibrary.find(const SourceString('identical')); 741 identicalFunction = coreLibrary.find(const SourceString('identical'));
742 742
743 initializeSpecialClasses(); 743 initializeSpecialClasses();
744 744
745 functionClass.ensureResolved(this); 745 functionClass.ensureResolved(this);
746 functionApplyMethod = 746 functionApplyMethod =
747 functionClass.lookupLocalMember(const SourceString('apply')); 747 functionClass.lookupLocalMember(const SourceString('apply'));
748 jsInvocationMirrorClass.ensureResolved(this); 748 jsInvocationMirrorClass.ensureResolved(this);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1334
1335 void close() {} 1335 void close() {}
1336 1336
1337 toString() => name; 1337 toString() => name;
1338 1338
1339 /// Convenience method for getting an [api.CompilerOutputProvider]. 1339 /// Convenience method for getting an [api.CompilerOutputProvider].
1340 static NullSink outputProvider(String name, String extension) { 1340 static NullSink outputProvider(String name, String extension) {
1341 return new NullSink('$name.$extension'); 1341 return new NullSink('$name.$extension');
1342 } 1342 }
1343 } 1343 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698