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

Unified Diff: src/objects.h

Issue 1378533002: [es6] Introduce %ToInteger and %ToLength. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/object-observe.js ('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 431ead900cb7cae6727cea404061a2b0ca413f8a..7ea36cc4545d4a7c5f76c9d1394075fc81892791 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1127,10 +1127,26 @@ class Object {
// ES6 section 7.1.3 ToNumber
MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input);
+ // ES6 section 7.1.4 ToInteger
+ MUST_USE_RESULT static MaybeHandle<Object> ToInteger(Isolate* isolate,
+ Handle<Object> input);
+
+ // ES6 section 7.1.5 ToInt32
+ MUST_USE_RESULT static MaybeHandle<Object> ToInt32(Isolate* isolate,
+ Handle<Object> input);
+
+ // ES6 section 7.1.6 ToUint32
+ MUST_USE_RESULT static MaybeHandle<Object> ToUint32(Isolate* isolate,
+ Handle<Object> input);
+
// ES6 section 7.1.12 ToString
MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate,
Handle<Object> input);
+ // ES6 section 7.1.15 ToLength
+ MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
+ Handle<Object> input);
+
// 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/object-observe.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698