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

Unified Diff: src/elements.h

Issue 2735563002: Migrate %TypedArray%.prototype.fill to C++ (Closed)
Patch Set: Merge branch 'master' into fill Created 3 years, 9 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
Index: src/elements.h
diff --git a/src/elements.h b/src/elements.h
index d693092bfbea2ac3de3ed048a7d2e2a4d4cad25d..89ac5a250accc489f5b90ff96d3b691e2f7bd0ee 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -158,6 +158,10 @@ class ElementsAccessor {
virtual uint32_t GetCapacity(JSObject* holder,
FixedArrayBase* backing_store) = 0;
+ virtual Object* Fill(Isolate* isolate, Handle<JSObject> receiver,
+ Handle<Object> obj_value, uint32_t start,
+ uint32_t end) = 0;
+
// Check an Object's own elements for an element (using SameValueZero
// semantics)
virtual Maybe<bool> IncludesValue(Isolate* isolate, Handle<JSObject> receiver,
« no previous file with comments | « src/builtins/builtins-typedarray.cc ('k') | src/elements.cc » ('j') | src/elements.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698