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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11574032: Make unit testing of the compiler work with the new isolate helper library. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 library html; 1 library html;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:indexed_db'; 6 import 'dart:indexed_db';
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 import 'dart:json' as json; 8 import 'dart:json' as json;
9 import 'dart:math'; 9 import 'dart:math';
10 import 'dart:svg' as svg; 10 import 'dart:svg' as svg;
(...skipping 30 matching lines...) Expand all
41 JS('void', r'window.$dart$isolate$counter = 1'); 41 JS('void', r'window.$dart$isolate$counter = 1');
42 } 42 }
43 return JS('int', r'window.$dart$isolate$counter++'); 43 return JS('int', r'window.$dart$isolate$counter++');
44 } 44 }
45 45
46 // Fast path to invoke JS send port. 46 // Fast path to invoke JS send port.
47 _callPortSync(int id, message) { 47 _callPortSync(int id, message) {
48 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 48 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
49 } 49 }
50 50
51 // TODO(vsm): Plumb this properly. 51 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f);
52 spawnDomFunction(f) => spawnFunction(f);
53 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 52 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
54 // for details. All rights reserved. Use of this source code is governed by a 53 // for details. All rights reserved. Use of this source code is governed by a
55 // BSD-style license that can be found in the LICENSE file. 54 // BSD-style license that can be found in the LICENSE file.
56 55
57 56
58 /// @domName AbstractWorker; @docsEditable true 57 /// @domName AbstractWorker; @docsEditable true
59 class AbstractWorker extends EventTarget native "*AbstractWorker" { 58 class AbstractWorker extends EventTarget native "*AbstractWorker" {
60 59
61 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 60 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
62 AbstractWorkerEvents get on => 61 AbstractWorkerEvents get on =>
(...skipping 26854 matching lines...) Expand 10 before | Expand all | Expand 10 after
26917 _position = nextPosition; 26916 _position = nextPosition;
26918 return true; 26917 return true;
26919 } 26918 }
26920 _current = null; 26919 _current = null;
26921 _position = _array.length; 26920 _position = _array.length;
26922 return false; 26921 return false;
26923 } 26922 }
26924 26923
26925 T get current => _current; 26924 T get current => _current;
26926 } 26925 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | tests/compiler/dart2js_extra/isolate2_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698