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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « src/object-observe.js ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, 1120 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate,
1121 Handle<Object> input); 1121 Handle<Object> input);
1122 1122
1123 // ES6 section 7.1.1 ToPrimitive 1123 // ES6 section 7.1.1 ToPrimitive
1124 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( 1124 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive(
1125 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 1125 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
1126 1126
1127 // ES6 section 7.1.3 ToNumber 1127 // ES6 section 7.1.3 ToNumber
1128 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input); 1128 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input);
1129 1129
1130 // ES6 section 7.1.4 ToInteger
1131 MUST_USE_RESULT static MaybeHandle<Object> ToInteger(Isolate* isolate,
1132 Handle<Object> input);
1133
1134 // ES6 section 7.1.5 ToInt32
1135 MUST_USE_RESULT static MaybeHandle<Object> ToInt32(Isolate* isolate,
1136 Handle<Object> input);
1137
1138 // ES6 section 7.1.6 ToUint32
1139 MUST_USE_RESULT static MaybeHandle<Object> ToUint32(Isolate* isolate,
1140 Handle<Object> input);
1141
1130 // ES6 section 7.1.12 ToString 1142 // ES6 section 7.1.12 ToString
1131 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate, 1143 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate,
1132 Handle<Object> input); 1144 Handle<Object> input);
1133 1145
1146 // ES6 section 7.1.15 ToLength
1147 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
1148 Handle<Object> input);
1149
1134 // ES6 section 7.3.9 GetMethod 1150 // ES6 section 7.3.9 GetMethod
1135 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( 1151 MUST_USE_RESULT static MaybeHandle<Object> GetMethod(
1136 Handle<JSReceiver> receiver, Handle<Name> name); 1152 Handle<JSReceiver> receiver, Handle<Name> name);
1137 1153
1138 // ES6 section 12.5.6 The typeof Operator 1154 // ES6 section 12.5.6 The typeof Operator
1139 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); 1155 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object);
1140 1156
1141 // ES6 section 12.6 Multiplicative Operators 1157 // ES6 section 12.6 Multiplicative Operators
1142 MUST_USE_RESULT static MaybeHandle<Object> Multiply( 1158 MUST_USE_RESULT static MaybeHandle<Object> Multiply(
1143 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, 1159 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs,
(...skipping 9423 matching lines...) Expand 10 before | Expand all | Expand 10 after
10567 10583
10568 Isolate* isolate_; 10584 Isolate* isolate_;
10569 Handle<FixedArray> keys_; 10585 Handle<FixedArray> keys_;
10570 Handle<OrderedHashSet> set_; 10586 Handle<OrderedHashSet> set_;
10571 int length_; 10587 int length_;
10572 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10588 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10573 }; 10589 };
10574 } } // namespace v8::internal 10590 } } // namespace v8::internal
10575 10591
10576 #endif // V8_OBJECTS_H_ 10592 #endif // V8_OBJECTS_H_
OLDNEW
« 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