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

Unified Diff: src/isolate.cc

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: CheckIf() for ArrayBufferWasNeutered() rather than a branch, which hopefully can be eliminated, and… 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.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 995b2628becda2e6e9ead6f69e46c4563636535e..66c7341bddafc11f31ffdc0d68f01e8491b3fefd 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2951,6 +2951,14 @@ void Isolate::InvalidateStringLengthOverflowProtector() {
DCHECK(!IsStringLengthOverflowIntact());
}
+void Isolate::InvalidateArrayIteratorProtector() {
Camillo Bruni 2016/11/09 12:03:49 You may want to wire this to LookupIterator::Inter
caitp 2016/11/09 17:40:16 this cell isn't changed during lookup, it's change
+ DCHECK(factory()->array_iterator_protector()->value()->IsSmi());
+ DCHECK(CanInlineArrayIterator());
+ factory()->array_iterator_protector()->set_value(
+ Smi::FromInt(kArrayProtectorInvalid));
+ DCHECK(!CanInlineArrayIterator());
+}
+
bool Isolate::IsAnyInitialArrayPrototype(Handle<JSArray> array) {
DisallowHeapAllocation no_gc;
return IsInAnyContext(*array, Context::INITIAL_ARRAY_PROTOTYPE_INDEX);

Powered by Google App Engine
This is Rietveld 408576698