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

Unified Diff: runtime/vm/method_recognizer.h

Issue 509373003: Manually inline fixed-size list's forEach, to make it possible for the VM to optimize. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Force inline immutable lists. Created 6 years, 4 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 | « runtime/lib/array.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/method_recognizer.h
diff --git a/runtime/vm/method_recognizer.h b/runtime/vm/method_recognizer.h
index a0339d421ad95d6a7bf475710c93e4abf5912fbf..b246de50b6d0d0863294863d86de9798d7f2d02a 100644
--- a/runtime/vm/method_recognizer.h
+++ b/runtime/vm/method_recognizer.h
@@ -295,12 +295,17 @@ namespace dart {
V(_GrowableList, get:length, GrowableArrayLength, 778505107) \
V(_StringBase, get:length, StringBaseLength, 784399628) \
V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \
+ V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \
V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \
V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \
V(_List, ., ObjectArrayAllocate, 1595327584) \
V(_List, [], ObjectArrayGetIndexed, 795612476) \
V(_List, []=, ObjectArraySetIndexed, 1288827575) \
V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \
+ V(_List, get:iterator, ObjectArrayIterator, 458612415) \
+ V(_List, forEach, ObjectArrayForEach, 592525445) \
+ V(_ImmutableList, get:iterator, ImmutableArrayIterator, 362084797) \
+ V(_ImmutableList, forEach, ImmutableArrayForEach, 63658053) \
V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \
V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \
V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \
« no previous file with comments | « runtime/lib/array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698