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

Unified Diff: src/objects.h

Issue 2090353003: Amend DataView, ArrayBuffer, and TypedArray methods to use ToIndex. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comment Created 4 years, 6 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
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 5dc18607b2b9431a96dd50693f00d35837a27af3..331802a7de689d3e3d8f035558bafaf3c15197ab 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -18,9 +18,10 @@
#include "src/field-index.h"
#include "src/flags.h"
#include "src/list.h"
+#include "src/messages.h"
#include "src/property-details.h"
-#include "src/unicode.h"
#include "src/unicode-decoder.h"
+#include "src/unicode.h"
#include "src/zone.h"
#if V8_TARGET_ARCH_ARM
@@ -1177,6 +1178,11 @@ class Object {
MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
Handle<Object> input);
+ // ES6 section 7.1.17 ToIndex
+ MUST_USE_RESULT static MaybeHandle<Object> ToIndex(
+ Isolate* isolate, Handle<Object> input,
+ MessageTemplate::Template error_index);
+
// ES6 section 7.3.9 GetMethod
MUST_USE_RESULT static MaybeHandle<Object> GetMethod(
Handle<JSReceiver> receiver, Handle<Name> name);
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698