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

Side by Side Diff: lib/runtime/dart/isolate.js

Issue 1043003002: keep mixin and interface implementation info at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var isolate; 1 var isolate;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Capability extends core.Object { 4 class Capability extends core.Object {
5 Capability() { 5 Capability() {
6 return new _isolate_helper.CapabilityImpl(); 6 return new _isolate_helper.CapabilityImpl();
7 } 7 }
8 } 8 }
9 class IsolateSpawnException extends core.Object { 9 class IsolateSpawnException extends core.Object {
10 IsolateSpawnException(message) { 10 IsolateSpawnException(message) {
11 this.message = message; 11 this.message = message;
12 } 12 }
13 toString() { 13 toString() {
14 return `IsolateSpawnException: ${this.message}`; 14 return `IsolateSpawnException: ${this.message}`;
15 } 15 }
16 } 16 }
17 IsolateSpawnException[dart.implements] = [core.Exception];
17 let _currentIsolateCache = Symbol('_currentIsolateCache'); 18 let _currentIsolateCache = Symbol('_currentIsolateCache');
18 let _pause = Symbol('_pause'); 19 let _pause = Symbol('_pause');
19 class Isolate extends core.Object { 20 class Isolate extends core.Object {
20 Isolate(controlPort, opts) { 21 Isolate(controlPort, opts) {
21 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi lity : null; 22 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi lity : null;
22 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter minateCapability : null; 23 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter minateCapability : null;
23 this.controlPort = controlPort; 24 this.controlPort = controlPort;
24 this.pauseCapability = pauseCapability; 25 this.pauseCapability = pauseCapability;
25 this.terminateCapability = terminateCapability; 26 this.terminateCapability = terminateCapability;
26 } 27 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Isolate.IMMEDIATE = 0; 150 Isolate.IMMEDIATE = 0;
150 Isolate.BEFORE_NEXT_EVENT = 1; 151 Isolate.BEFORE_NEXT_EVENT = 1;
151 Isolate.AS_EVENT = 2; 152 Isolate.AS_EVENT = 2;
152 dart.defineLazyProperties(Isolate, { 153 dart.defineLazyProperties(Isolate, {
153 get _currentIsolateCache() { 154 get _currentIsolateCache() {
154 return _isolate_helper.IsolateNatives.currentIsolate; 155 return _isolate_helper.IsolateNatives.currentIsolate;
155 } 156 }
156 }); 157 });
157 class SendPort extends core.Object { 158 class SendPort extends core.Object {
158 } 159 }
160 SendPort[dart.implements] = [Capability];
159 class ReceivePort extends core.Object { 161 class ReceivePort extends core.Object {
160 ReceivePort() { 162 ReceivePort() {
161 return new _isolate_helper.ReceivePortImpl(); 163 return new _isolate_helper.ReceivePortImpl();
162 } 164 }
163 fromRawReceivePort(rawPort) { 165 fromRawReceivePort(rawPort) {
164 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); 166 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort);
165 } 167 }
166 } 168 }
169 ReceivePort[dart.implements] = [async.Stream];
167 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); 170 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort');
168 class RawReceivePort extends core.Object { 171 class RawReceivePort extends core.Object {
169 RawReceivePort(handler) { 172 RawReceivePort(handler) {
170 if (handler === void 0) 173 if (handler === void 0)
171 handler = null; 174 handler = null;
172 return new _isolate_helper.RawReceivePortImpl(handler); 175 return new _isolate_helper.RawReceivePortImpl(handler);
173 } 176 }
174 } 177 }
175 class _IsolateUnhandledException extends core.Object { 178 class _IsolateUnhandledException extends core.Object {
176 _IsolateUnhandledException(message, source, stackTrace) { 179 _IsolateUnhandledException(message, source, stackTrace) {
177 this.message = message; 180 this.message = message;
178 this.source = source; 181 this.source = source;
179 this.stackTrace = stackTrace; 182 this.stackTrace = stackTrace;
180 } 183 }
181 toString() { 184 toString() {
182 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.dinvoke(dart.dinvoke(this.source, 'toString'), ' replaceAll', "\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrac e.toString().replaceAll("\n", "\n ")}`; 185 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.dinvoke(dart.dinvoke(this.source, 'toString'), ' replaceAll', "\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrac e.toString().replaceAll("\n", "\n ")}`;
183 } 186 }
184 } 187 }
188 _IsolateUnhandledException[dart.implements] = [core.Exception];
185 let _description = Symbol('_description'); 189 let _description = Symbol('_description');
186 class RemoteError extends core.Object { 190 class RemoteError extends core.Object {
187 RemoteError(description, stackDescription) { 191 RemoteError(description, stackDescription) {
188 this[_description] = description; 192 this[_description] = description;
189 this.stackTrace = new _RemoteStackTrace(stackDescription); 193 this.stackTrace = new _RemoteStackTrace(stackDescription);
190 } 194 }
191 toString() { 195 toString() {
192 return this[_description]; 196 return this[_description];
193 } 197 }
194 } 198 }
199 RemoteError[dart.implements] = [core.Error];
195 let _trace = Symbol('_trace'); 200 let _trace = Symbol('_trace');
196 class _RemoteStackTrace extends core.Object { 201 class _RemoteStackTrace extends core.Object {
197 _RemoteStackTrace(trace) { 202 _RemoteStackTrace(trace) {
198 this[_trace] = trace; 203 this[_trace] = trace;
199 } 204 }
200 toString() { 205 toString() {
201 return this[_trace]; 206 return this[_trace];
202 } 207 }
203 } 208 }
209 _RemoteStackTrace[dart.implements] = [core.StackTrace];
204 // Exports: 210 // Exports:
205 exports.Capability = Capability; 211 exports.Capability = Capability;
206 exports.IsolateSpawnException = IsolateSpawnException; 212 exports.IsolateSpawnException = IsolateSpawnException;
207 exports.Isolate = Isolate; 213 exports.Isolate = Isolate;
208 exports.SendPort = SendPort; 214 exports.SendPort = SendPort;
209 exports.ReceivePort = ReceivePort; 215 exports.ReceivePort = ReceivePort;
210 exports.RawReceivePort = RawReceivePort; 216 exports.RawReceivePort = RawReceivePort;
211 exports.RemoteError = RemoteError; 217 exports.RemoteError = RemoteError;
212 })(isolate || (isolate = {})); 218 })(isolate || (isolate = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698