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

Unified Diff: src/isolate.h

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: add (some) test coverage, and fix some bugs found by it Created 4 years, 1 month 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 22888fc7f2e90e1b07a380208a79a27689402bc7..1d4258d3eb033913887462fa42cfa09aaff78379 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -995,6 +995,9 @@ class Isolate {
bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver);
inline bool IsStringLengthOverflowIntact();
+ // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators.
+ inline bool CanInlineArrayIterator();
+
// On intent to set an element in object, make sure that appropriate
// notifications occur if the set is on the elements of the array or
// object prototype. Also ensure that changes to prototype chain between
@@ -1013,6 +1016,7 @@ class Isolate {
void InvalidateHasInstanceProtector();
void InvalidateIsConcatSpreadableProtector();
void InvalidateStringLengthOverflowProtector();
+ void InvalidateArrayIteratorProtector();
// Returns true if array is the initial array prototype in any native context.
bool IsAnyInitialArrayPrototype(Handle<JSArray> array);
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.cc » ('j') | test/mjsunit/es6/array-iterator-turbo.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698