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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/immutable_map.dart ('k') | runtime/lib/regexp_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index 595beaec8bb554dd6af81d8d602e90255862363c..4087689f3a35becbd91d8d52982a578c2438ddd6 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -27,16 +27,16 @@ class _ReceivePortImpl implements ReceivePort {
/**** Internal implementation details ****/
// Called from the VM to create a new ReceivePort instance.
static _ReceivePortImpl _get_or_create(int id) {
- if (_portMap !== null) {
+ if (_portMap != null) {
_ReceivePortImpl port = _portMap[id];
- if (port !== null) {
+ if (port != null) {
return port;
}
}
return new _ReceivePortImpl._internal(id);
}
_ReceivePortImpl._internal(int id) : _id = id {
- if (_portMap === null) {
+ if (_portMap == null) {
_portMap = new Map();
}
_portMap[id] = this;
@@ -44,7 +44,7 @@ class _ReceivePortImpl implements ReceivePort {
// Called from the VM to dispatch to the handler.
static void _handleMessage(int id, int replyId, var message) {
- assert(_portMap !== null);
+ assert(_portMap != null);
ReceivePort port = _portMap[id];
SendPort replyTo = (replyId == 0) ? null : new _SendPortImpl(replyId);
(port._onMessage)(message, replyTo);
@@ -68,7 +68,7 @@ class _SendPortImpl implements SendPort {
}
void _sendNow(var message, SendPort replyTo) {
- int replyId = (replyTo === null) ? 0 : replyTo._id;
+ int replyId = (replyTo == null) ? 0 : replyTo._id;
_sendInternal(_id, replyId, message);
}
@@ -117,7 +117,7 @@ _getPortInternal() native "isolate_getPortInternal";
ReceivePort _portInternal;
patch ReceivePort get port {
- if (_portInternal === null) {
+ if (_portInternal == null) {
_portInternal = _getPortInternal();
}
return _portInternal;
« no previous file with comments | « runtime/lib/immutable_map.dart ('k') | runtime/lib/regexp_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698