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

Side by Side Diff: runtime/lib/lib_prefix.dart

Issue 2039813005: Fix checked mode error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import "dart:async"; 5 import "dart:async";
6 import "dart:isolate"; 6 import "dart:isolate";
7 7
8 // This type corresponds to the VM-internal class LibraryPrefix. 8 // This type corresponds to the VM-internal class LibraryPrefix.
9 class _LibraryPrefix { 9 class _LibraryPrefix {
10 bool _load() native "LibraryPrefix_load"; 10 bool _load() native "LibraryPrefix_load";
11 Error _loadError() native "LibraryPrefix_loadError"; 11 Object _loadError() native "LibraryPrefix_loadError";
12 bool isLoaded() native "LibraryPrefix_isLoaded"; 12 bool isLoaded() native "LibraryPrefix_isLoaded";
13 bool _invalidateDependentCode() 13 bool _invalidateDependentCode()
14 native "LibraryPrefix_invalidateDependentCode"; 14 native "LibraryPrefix_invalidateDependentCode";
15 15
16 loadLibrary() { 16 loadLibrary() {
17 for (int i = 0; i < _outstandingLoadRequests.length; i++) { 17 for (int i = 0; i < _outstandingLoadRequests.length; i++) {
18 if (_outstandingLoadRequests[i][0] == this) { 18 if (_outstandingLoadRequests[i][0] == this) {
19 return _outstandingLoadRequests[i][1].future; 19 return _outstandingLoadRequests[i][1].future;
20 } 20 }
21 } 21 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 completer.completeError(error); 71 completer.completeError(error);
72 } else if (prefix._load()) { 72 } else if (prefix._load()) {
73 prefix._invalidateDependentCode(); 73 prefix._invalidateDependentCode();
74 completer.complete(true); 74 completer.complete(true);
75 } else { 75 } else {
76 stillOutstandingLoadRequests.add(outstandingRequests[i]); 76 stillOutstandingLoadRequests.add(outstandingRequests[i]);
77 } 77 }
78 } 78 }
79 _outstandingLoadRequests = stillOutstandingLoadRequests; 79 _outstandingLoadRequests = stillOutstandingLoadRequests;
80 } 80 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698