| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 var isolate$current = null; | 5 var isolate$current = null; |
| 6 var isolate$rootIsolate = null; // Will only be set in the main worker. | 6 var isolate$rootIsolate = null; // Will only be set in the main worker. |
| 7 var isolate$inits = []; | 7 var isolate$inits = []; |
| 8 var isolate$globalThis = this; | 8 var isolate$globalThis = this; |
| 9 | 9 |
| 10 // These declarations are needed to avoid errors from the Closure Compiler | 10 // These declarations are needed to avoid errors from the Closure Compiler |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 482 |
| 483 function native_Serializer__jsArrayIndexSet(jsArray, index, val) { | 483 function native_Serializer__jsArrayIndexSet(jsArray, index, val) { |
| 484 jsArray[index] = val; | 484 jsArray[index] = val; |
| 485 } | 485 } |
| 486 | 486 |
| 487 function native_Serializer__dartListToJsArrayNoCopy(list) { | 487 function native_Serializer__dartListToJsArrayNoCopy(list) { |
| 488 if (list instanceof Array) { | 488 if (list instanceof Array) { |
| 489 RTT.removeTypeInfo(list); | 489 RTT.removeTypeInfo(list); |
| 490 return list; | 490 return list; |
| 491 } else { | 491 } else { |
| 492 var len = native__ArrayJsUtil__arrayLength(list); | 492 var len = native__ListJsUtil__listLength(list); |
| 493 var array = new Array(len); | 493 var array = new Array(len); |
| 494 for (var i = 0; i < len; i++) { | 494 for (var i = 0; i < len; i++) { |
| 495 array[i] = INDEX$operator(list, i); | 495 array[i] = INDEX$operator(list, i); |
| 496 } | 496 } |
| 497 return array; | 497 return array; |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 | 500 |
| 501 function native_Deserializer__isJsArray(x) { | 501 function native_Deserializer__isJsArray(x) { |
| 502 return x instanceof Array; | 502 return x instanceof Array; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 519 } | 519 } |
| 520 | 520 |
| 521 function isolate$deserializeMessage(message) { | 521 function isolate$deserializeMessage(message) { |
| 522 if (isolate$useWorkers || isolate$useWorkerSerializationProtocol) { | 522 if (isolate$useWorkers || isolate$useWorkerSerializationProtocol) { |
| 523 return native__IsolateJsUtil__deserializeMessage(message); | 523 return native__IsolateJsUtil__deserializeMessage(message); |
| 524 } else { | 524 } else { |
| 525 // Nothing more to do. | 525 // Nothing more to do. |
| 526 return message; | 526 return message; |
| 527 } | 527 } |
| 528 } | 528 } |
| OLD | NEW |