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

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

Issue 11867024: Move some core classes to collection library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with bug number. Created 7 years, 11 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 _isolate_helper; 5 library _isolate_helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection' show Queue, HashMap;
8 import 'dart:isolate'; 9 import 'dart:isolate';
9 10
10 ReceivePort lazyPort; 11 ReceivePort lazyPort;
11 12
12 /** 13 /**
13 * Called by the compiler to support switching 14 * Called by the compiler to support switching
14 * between isolates when we get a callback from the DOM. 15 * between isolates when we get a callback from the DOM.
15 */ 16 */
16 void _callInIsolate(_IsolateContext isolate, Function function) { 17 void _callInIsolate(_IsolateContext isolate, Function function) {
17 isolate.eval(function); 18 isolate.eval(function);
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 JS('void', '#.clearInterval(#)', globalThis, _handle); 1329 JS('void', '#.clearInterval(#)', globalThis, _handle);
1329 } 1330 }
1330 _handle = null; 1331 _handle = null;
1331 } else { 1332 } else {
1332 throw new UnsupportedError("Canceling a timer."); 1333 throw new UnsupportedError("Canceling a timer.");
1333 } 1334 }
1334 } 1335 }
1335 } 1336 }
1336 1337
1337 bool hasTimer() => JS('', '#.setTimeout', globalThis) != null; 1338 bool hasTimer() => JS('', '#.setTimeout', globalThis) != null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698