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

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

Issue 15031004: Revert "Remove _WorkerStub hack to make benefit closing an isolate." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | dart/sdk/lib/_internal/compiler/implementation/js_backend/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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 const SourceString(""), listClass.getLibrary()); 718 const SourceString(""), listClass.getLibrary());
719 return _unnamedListConstructor = 719 return _unnamedListConstructor =
720 listClass.lookupConstructor(callConstructor); 720 listClass.lookupConstructor(callConstructor);
721 } 721 }
722 722
723 void scanBuiltinLibraries() { 723 void scanBuiltinLibraries() {
724 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); 724 jsHelperLibrary = scanBuiltinLibrary('_js_helper');
725 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); 725 interceptorsLibrary = scanBuiltinLibrary('_interceptors');
726 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); 726 foreignLibrary = scanBuiltinLibrary('_foreign_helper');
727 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); 727 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper');
728 // The helper library does not use the native language extension,
729 // so we manually set the native classes this library defines.
730 // TODO(ngeoffray): Enable annotations on these classes.
731 ClassElement cls =
732 isolateHelperLibrary.find(const SourceString('_WorkerStub'));
733 cls.setNative('"Worker"');
728 734
729 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); 735 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper'));
730 identicalFunction = coreLibrary.find(const SourceString('identical')); 736 identicalFunction = coreLibrary.find(const SourceString('identical'));
731 737
732 initializeSpecialClasses(); 738 initializeSpecialClasses();
733 739
734 functionClass.ensureResolved(this); 740 functionClass.ensureResolved(this);
735 functionApplyMethod = 741 functionApplyMethod =
736 functionClass.lookupLocalMember(const SourceString('apply')); 742 functionClass.lookupLocalMember(const SourceString('apply'));
737 jsInvocationMirrorClass.ensureResolved(this); 743 jsInvocationMirrorClass.ensureResolved(this);
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 1331
1326 void close() {} 1332 void close() {}
1327 1333
1328 toString() => name; 1334 toString() => name;
1329 1335
1330 /// Convenience method for getting an [api.CompilerOutputProvider]. 1336 /// Convenience method for getting an [api.CompilerOutputProvider].
1331 static NullSink outputProvider(String name, String extension) { 1337 static NullSink outputProvider(String name, String extension) {
1332 return new NullSink('$name.$extension'); 1338 return new NullSink('$name.$extension');
1333 } 1339 }
1334 } 1340 }
OLDNEW
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698