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

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

Issue 1100633006: Generate static calls for Object fields and methods (Closed) Base URL: https://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
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) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 port = null; 148 port = null;
149 }).bind(this) 149 }).bind(this)
150 }); 150 });
151 return controller.stream; 151 return controller.stream;
152 } 152 }
153 } 153 }
154 Isolate.IMMEDIATE = 0; 154 Isolate.IMMEDIATE = 0;
155 Isolate.BEFORE_NEXT_EVENT = 1; 155 Isolate.BEFORE_NEXT_EVENT = 1;
156 Isolate.AS_EVENT = 2; 156 Isolate.AS_EVENT = 2;
157 dart.defineLazyProperties(Isolate, { 157 dart.defineLazyProperties(Isolate, {
158 get _currentIsolateCache() { 158 get [_currentIsolateCache]() {
159 return _isolate_helper.IsolateNatives.currentIsolate; 159 return _isolate_helper.IsolateNatives.currentIsolate;
160 } 160 }
161 }); 161 });
162 class SendPort extends core.Object {} 162 class SendPort extends core.Object {}
163 SendPort[dart.implements] = () => [Capability]; 163 SendPort[dart.implements] = () => [Capability];
164 class ReceivePort extends core.Object { 164 class ReceivePort extends core.Object {
165 ReceivePort() { 165 ReceivePort() {
166 return new _isolate_helper.ReceivePortImpl(); 166 return new _isolate_helper.ReceivePortImpl();
167 } 167 }
168 fromRawReceivePort(rawPort) { 168 fromRawReceivePort(rawPort) {
169 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); 169 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort);
170 } 170 }
171 } 171 }
172 ReceivePort[dart.implements] = () => [async.Stream]; 172 ReceivePort[dart.implements] = () => [async.Stream];
173 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); 173 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort');
174 class RawReceivePort extends core.Object { 174 class RawReceivePort extends core.Object {
175 RawReceivePort(handler) { 175 RawReceivePort(handler) {
176 if (handler === void 0) 176 if (handler === void 0)
177 handler = null; 177 handler = null;
178 return new _isolate_helper.RawReceivePortImpl(handler); 178 return new _isolate_helper.RawReceivePortImpl(handler);
179 } 179 }
180 } 180 }
181 class _IsolateUnhandledException extends core.Object { 181 class _IsolateUnhandledException extends core.Object {
182 _IsolateUnhandledException(message, source, stackTrace) { 182 _IsolateUnhandledException(message, source, stackTrace) {
183 this.message = message; 183 this.message = message;
184 this.source = source; 184 this.source = source;
185 this.stackTrace = stackTrace; 185 this.stackTrace = stackTrace;
186 } 186 }
187 toString() { 187 toString() {
188 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${this.source.toString().replaceAll("\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrace.toString().replaceAll("\n", "\ n ")}`; 188 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.toString(this.source).replaceAll("\n", "\n ")}\ n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace).replaceAll( "\n", "\n ")}`;
189 } 189 }
190 } 190 }
191 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; 191 _IsolateUnhandledException[dart.implements] = () => [core.Exception];
192 let _description = Symbol('_description'); 192 let _description = Symbol('_description');
193 class RemoteError extends core.Object { 193 class RemoteError extends core.Object {
194 RemoteError(description, stackDescription) { 194 RemoteError(description, stackDescription) {
195 this[_description] = description; 195 this[_description] = description;
196 this.stackTrace = new _RemoteStackTrace(stackDescription); 196 this.stackTrace = new _RemoteStackTrace(stackDescription);
197 } 197 }
198 toString() { 198 toString() {
(...skipping 13 matching lines...) Expand all
212 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; 212 _RemoteStackTrace[dart.implements] = () => [core.StackTrace];
213 // Exports: 213 // Exports:
214 exports.Capability = Capability; 214 exports.Capability = Capability;
215 exports.IsolateSpawnException = IsolateSpawnException; 215 exports.IsolateSpawnException = IsolateSpawnException;
216 exports.Isolate = Isolate; 216 exports.Isolate = Isolate;
217 exports.SendPort = SendPort; 217 exports.SendPort = SendPort;
218 exports.ReceivePort = ReceivePort; 218 exports.ReceivePort = ReceivePort;
219 exports.RawReceivePort = RawReceivePort; 219 exports.RawReceivePort = RawReceivePort;
220 exports.RemoteError = RemoteError; 220 exports.RemoteError = RemoteError;
221 })(isolate || (isolate = {})); 221 })(isolate || (isolate = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698