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

Unified Diff: src/elements.h

Issue 2744283002: [typedarrays] Implement %TypedArray%.prototype.lastIndexOf in C++ (Closed)
Patch Set: 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 28635d5bead290dd37b9c4f03b30ac45316eafb9..1fab841d058b14035c71522d4360970610ad8bf7 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -171,6 +171,11 @@ class ElementsAccessor {
Handle<Object> value, uint32_t start,
uint32_t length) = 0;
+ virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate,
+ Handle<JSObject> receiver,
+ Handle<Object> value,
+ int64_t start) = 0;
+
virtual void CopyElements(Handle<FixedArrayBase> source,
ElementsKind source_kind,
Handle<FixedArrayBase> destination, int size) = 0;
« 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