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

Side by Side Diff: compiler/lib/implementation/isolate.js

Issue 8321024: Clean up (most) uses of Array. Still more to come in the VM corelib code base. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « compiler/lib/implementation/arrays.dart ('k') | compiler/lib/implementation/regexp.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « compiler/lib/implementation/arrays.dart ('k') | compiler/lib/implementation/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698