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

Unified Diff: lib/runtime/dart/async.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: Address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/_native_typed_data.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/async.js
diff --git a/lib/runtime/dart/async.js b/lib/runtime/dart/async.js
index 5f7d8f137a18fe737634530a4151a37dcb46daa4..17c4d67954cec5993a548bb0fefcd277fcd05dcb 100644
--- a/lib/runtime/dart/async.js
+++ b/lib/runtime/dart/async.js
@@ -24,7 +24,7 @@ var async;
this.stackTrace = stackTrace;
}
toString() {
- return this.error.toString();
+ return dart.toString(this.error);
}
}
AsyncError[dart.implements] = () => [core.Error];
@@ -340,7 +340,7 @@ var async;
result[_completeError](e);
},
onDone: () => {
- result[_complete](buffer.toString());
+ result[_complete](dart.toString(buffer));
},
cancelOnError: true
});
@@ -801,7 +801,7 @@ var async;
return this[_controller][_subscribe](onData, onError, onDone, cancelOnError);
}
get hashCode() {
- return dart.notNull(this[_controller].hashCode) ^ 892482866;
+ return dart.notNull(dart.hashCode(this[_controller])) ^ 892482866;
}
['=='](other) {
if (core.identical(this, other))
@@ -1677,6 +1677,7 @@ var async;
}
DeferredLoadException[dart.implements] = () => [core.Exception];
let _completeWithValue = Symbol('_completeWithValue');
+ let _nullFuture = Symbol('_nullFuture');
let Future$ = dart.generic(function(T) {
class Future extends core.Object {
Future(computation) {
@@ -1836,7 +1837,7 @@ var async;
dart.defineNamedConstructor(Future, 'error');
dart.defineNamedConstructor(Future, 'delayed');
dart.defineLazyProperties(Future, {
- get _nullFuture() {
+ get [_nullFuture]() {
return new Future.value(null);
}
});
@@ -2774,7 +2775,6 @@ var async;
let _pendingEvents = Symbol('_pendingEvents');
let _ensurePendingEvents = Symbol('_ensurePendingEvents');
let _badEventState = Symbol('_badEventState');
- let _nullFuture = Symbol('_nullFuture');
let _StreamController$ = dart.generic(function(T) {
class _StreamController extends core.Object {
_StreamController() {
@@ -4118,10 +4118,10 @@ var async;
}
}
dart.defineLazyProperties(_DistinctStream, {
- get _SENTINEL() {
+ get [_SENTINEL]() {
return new core.Object();
},
- set _SENTINEL(_) {}
+ set [_SENTINEL](_) {}
});
return _DistinctStream;
});
@@ -5145,10 +5145,10 @@ var async;
}
_RootZone._rootDelegate = null;
dart.defineLazyProperties(_RootZone, {
- get _rootMap() {
+ get [_rootMap]() {
return new collection.HashMap();
},
- set _rootMap(_) {}
+ set [_rootMap](_) {}
});
let _ROOT_ZONE = dart.const(new _RootZone());
// Function runZoned: (() → dynamic, {zoneValues: Map<dynamic, dynamic>, zoneSpecification: ZoneSpecification, onError: Function}) → dynamic
« no previous file with comments | « lib/runtime/dart/_native_typed_data.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698