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

Unified Diff: src/isolate-inl.h

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
« src/isolate.cc ('K') | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate-inl.h
diff --git a/src/isolate-inl.h b/src/isolate-inl.h
index 34c98bba645a5a44253689b954abc9370b550209..787f235916f30c1e3a175c50dd499031c2d83dfe 100644
--- a/src/isolate-inl.h
+++ b/src/isolate-inl.h
@@ -143,6 +143,11 @@ bool Isolate::IsStringLengthOverflowIntact() {
return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid);
}
+bool Isolate::CanInlineArrayIterator() {
Camillo Bruni 2016/11/09 12:03:49 nit: Could you rename this function to be more con
caitp 2016/11/09 17:40:16 I'm not sure what a good name for this is, but "Lo
+ Cell* array_iterator_cell = heap()->array_iterator_protector();
+ return array_iterator_cell->value() == Smi::FromInt(kArrayProtectorValid);
+}
+
} // namespace internal
} // namespace v8
« src/isolate.cc ('K') | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698