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

Unified Diff: lib/isolate/frog/ports.dart

Issue 10666052: Revert "Implement override checks." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/compiler/implementation/warnings.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/frog/ports.dart
diff --git a/lib/isolate/frog/ports.dart b/lib/isolate/frog/ports.dart
index 68081a6a3059455d2d7905179d2b05ed6a9eb6aa..f7cddf477488be256ddc587a8ce16c83276550d9 100644
--- a/lib/isolate/frog/ports.dart
+++ b/lib/isolate/frog/ports.dart
@@ -9,7 +9,7 @@ class _BaseSendPort implements SendPort {
const _BaseSendPort(this._isolateId);
- void _checkReplyTo(SendPort replyTo) {
+ static void checkReplyTo(SendPort replyTo) {
if (replyTo !== null
&& replyTo is! _NativeJsSendPort
&& replyTo is! _WorkerSendPort
@@ -46,7 +46,7 @@ class _NativeJsSendPort extends _BaseSendPort implements SendPort {
void send(var message, [SendPort replyTo = null]) {
_waitForPendingPorts([message, replyTo], () {
- _checkReplyTo(replyTo);
+ checkReplyTo(replyTo);
// Check that the isolate still runs and the port is still open
final isolate = _globalState.isolates[_isolateId];
if (isolate == null) return;
@@ -96,7 +96,7 @@ class _WorkerSendPort extends _BaseSendPort implements SendPort {
void send(var message, [SendPort replyTo = null]) {
_waitForPendingPorts([message, replyTo], () {
- _checkReplyTo(replyTo);
+ checkReplyTo(replyTo);
final workerMessage = _serializeMessage({
'command': 'message',
'port': this,
« no previous file with comments | « lib/compiler/implementation/warnings.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698