| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // DO NOT EDIT | 5 // DO NOT EDIT |
| 6 // Auto-generated dart:html library. | 6 // Auto-generated dart:html library. |
| 7 | 7 |
| 8 #library('html'); | 8 #library('html'); |
| 9 | 9 |
| 10 #import('dart:isolate'); | 10 #import('dart:isolate'); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 num _id; | 73 num _id; |
| 74 _JsSendPortSync(this._id); | 74 _JsSendPortSync(this._id); |
| 75 | 75 |
| 76 callSync(var message) { | 76 callSync(var message) { |
| 77 var serialized = _serialize(message); | 77 var serialized = _serialize(message); |
| 78 var result = _call(_id, serialized); | 78 var result = _call(_id, serialized); |
| 79 return _deserialize(result); | 79 return _deserialize(result); |
| 80 } | 80 } |
| 81 | 81 |
| 82 static _call(num id, var message) native @""" | 82 static _call(num id, var message) native @""" |
| 83 var deserialized = _deserialize(message); | 83 return ReceivePortSync.dispatchCall(id, message); |
| 84 var result = ReceivePortSync.map[id].callback(deserialized); | |
| 85 return _serialize(result); | |
| 86 """; | 84 """; |
| 87 | 85 |
| 88 } | 86 } |
| OLD | NEW |