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

Side by Side Diff: frog/lib/corelib_impl.dart

Issue 8467034: Isolates in frog - tweaks in existing js code to make things run (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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("dart:coreimpl"); 5 #library("dart:coreimpl");
6 6
7 #source("../../corelib/src/implementation/dual_pivot_quicksort.dart"); 7 #source("../../corelib/src/implementation/dual_pivot_quicksort.dart");
8 #source("../../corelib/src/implementation/duration_implementation.dart"); 8 #source("../../corelib/src/implementation/duration_implementation.dart");
9 #source("../../corelib/src/implementation/exceptions.dart"); 9 #source("../../corelib/src/implementation/exceptions.dart");
10 #source("../../corelib/src/implementation/future_implementation.dart"); 10 #source("../../corelib/src/implementation/future_implementation.dart");
11 #source("../../corelib/src/implementation/hash_map_set.dart"); 11 #source("../../corelib/src/implementation/hash_map_set.dart");
12 // TODO(jimhug): Re-explore tradeoffs with using builtin JS maps. 12 // TODO(jimhug): Re-explore tradeoffs with using builtin JS maps.
13 #source("../../corelib/src/implementation/linked_hash_map.dart"); 13 #source("../../corelib/src/implementation/linked_hash_map.dart");
14 #source("../../corelib/src/implementation/maps.dart"); 14 #source("../../corelib/src/implementation/maps.dart");
15 #source("../../corelib/src/implementation/promise_implementation.dart"); 15 #source("../../corelib/src/implementation/promise_implementation.dart");
16 #source("../../corelib/src/implementation/queue.dart"); 16 #source("../../corelib/src/implementation/queue.dart");
17 #source("../../corelib/src/implementation/stopwatch_implementation.dart"); 17 #source("../../corelib/src/implementation/stopwatch_implementation.dart");
18 #source("../../corelib/src/implementation/splay_tree.dart"); 18 #source("../../corelib/src/implementation/splay_tree.dart");
19 19
20 #source("string_buffer.dart"); 20 #source("string_buffer.dart");
21 #source("string_base.dart"); 21 #source("string_base.dart");
22 #source("string_implementation.dart"); 22 #source("string_implementation.dart");
23 23
24 #source("arrays.dart"); 24 #source("arrays.dart");
25 #source("collections.dart"); 25 #source("collections.dart");
26 #source("date_implementation.dart"); 26 #source("date_implementation.dart");
27 27
28 // TODO(jmesserly): we need the native JS side of these. Right now I'm just 28 // TODO(jmesserly): we need the native JS side of these. Right now I'm just
29 // trying to get things compiling again. 29 // trying to get things compiling again.
Jennifer Messerly 2011/11/08 05:04:35 This TODO can go :) ... I'll remove it in my upcom
Siggi Cherem (dart-lang) 2011/11/08 17:56:42 :)
30 #native("isolate.js");
Jennifer Messerly 2011/11/08 05:04:35 I noticed this causes pretty bad code bloat. Somet
jimhug 2011/11/08 15:39:01 I agree that the code bloat is annoying - but I ta
30 #source("isolate.dart"); 31 #source("isolate.dart");
31 #source("isolate_serialization.dart"); 32 #source("isolate_serialization.dart");
32 33
33 class ListFactory<E> implements List<E> native "Array" { 34 class ListFactory<E> implements List<E> native "Array" {
34 ListFactory([int length]) native; 35 ListFactory([int length]) native;
35 36
36 // TODO(jmesserly): type parameters aren't working here 37 // TODO(jmesserly): type parameters aren't working here
37 factory ListFactory.from(Iterable other) { 38 factory ListFactory.from(Iterable other) {
38 final list = []; 39 final list = [];
39 for (final e in other) { 40 for (final e in other) {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } else if (isNaN()) { 408 } else if (isNaN()) {
408 if (other.isNaN()) { 409 if (other.isNaN()) {
409 return 0; 410 return 0;
410 } 411 }
411 return 1; 412 return 1;
412 } else { 413 } else {
413 return -1; 414 return -1;
414 } 415 }
415 } 416 }
416 } 417 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698