Chromium Code Reviews

Unified Diff: src/objects.h

Issue 2205883003: Reland [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compiler warning Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 24d41913dd8f33ecc8e6c498088cf9ee5bf36d18..337cb3f33f1a43081d2fbc4cceb09d8a4a9ba93f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2210,6 +2210,9 @@ class JSObject: public JSReceiver {
static bool UnregisterPrototypeUser(Handle<Map> user, Isolate* isolate);
static void InvalidatePrototypeChains(Map* map);
+ // Utility used by many Array builtins and runtime functions
+ static inline bool PrototypeHasNoElements(Isolate* isolate, JSObject* object);
+
// Alternative implementation of WeakFixedArray::NullCallback.
class PrototypeRegistryCompactionCallback {
public:
« src/code-stub-assembler.cc ('K') | « src/js/typedarray.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine