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

Side by Side Diff: runtime/vm/method_recognizer.h

Issue 536043002: Merge array allocation and List._copyFromObjectArray to provide fast path for large arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.h » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 #ifndef VM_METHOD_RECOGNIZER_H_ 5 #ifndef VM_METHOD_RECOGNIZER_H_
6 #define VM_METHOD_RECOGNIZER_H_ 6 #define VM_METHOD_RECOGNIZER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ 297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \
298 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \ 298 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \
299 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ 299 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \
300 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ 300 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \
301 V(_List, ., ObjectArrayAllocate, 1595327584) \ 301 V(_List, ., ObjectArrayAllocate, 1595327584) \
302 V(_List, [], ObjectArrayGetIndexed, 795612476) \ 302 V(_List, [], ObjectArrayGetIndexed, 795612476) \
303 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ 303 V(_List, []=, ObjectArraySetIndexed, 1288827575) \
304 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ 304 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \
305 V(_List, get:iterator, ObjectArrayIterator, 458612415) \ 305 V(_List, get:iterator, ObjectArrayIterator, 458612415) \
306 V(_List, forEach, ObjectArrayForEach, 592525445) \ 306 V(_List, forEach, ObjectArrayForEach, 592525445) \
307 V(_List, _copyFromObjectArray, ObjectArrayCopyFromObjectArray, 1985480605) \ 307 V(_List, _slice, ObjectArraySlice, 1891508040) \
308 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 362084797) \ 308 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 362084797) \
309 V(_ImmutableList, forEach, ImmutableArrayForEach, 63658053) \ 309 V(_ImmutableList, forEach, ImmutableArrayForEach, 63658053) \
310 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \ 310 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \
311 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ 311 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \
312 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ 312 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \
313 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \ 313 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \
314 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \ 314 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \
315 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \ 315 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \
316 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \ 316 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \
317 V(_Int8Array, [], Int8ArrayGetIndexed, 321230586) \ 317 V(_Int8Array, [], Int8ArrayGetIndexed, 321230586) \
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 static Kind RecognizeKind(const Function& function); 390 static Kind RecognizeKind(const Function& function);
391 static bool AlwaysInline(const Function& function); 391 static bool AlwaysInline(const Function& function);
392 static bool PolymorphicTarget(const Function& function); 392 static bool PolymorphicTarget(const Function& function);
393 static const char* KindToCString(Kind kind); 393 static const char* KindToCString(Kind kind);
394 static void InitializeState(); 394 static void InitializeState();
395 }; 395 };
396 396
397 } // namespace dart 397 } // namespace dart
398 398
399 #endif // VM_METHOD_RECOGNIZER_H_ 399 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698