OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 Handle<Object> input); | 1170 Handle<Object> input); |
1171 | 1171 |
1172 // ES6 section 7.3.9 GetMethod | 1172 // ES6 section 7.3.9 GetMethod |
1173 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( | 1173 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
1174 Handle<JSReceiver> receiver, Handle<Name> name); | 1174 Handle<JSReceiver> receiver, Handle<Name> name); |
1175 | 1175 |
1176 // ES6 section 7.3.17 CreateListFromArrayLike | 1176 // ES6 section 7.3.17 CreateListFromArrayLike |
1177 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( | 1177 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( |
1178 Isolate* isolate, Handle<Object> object, ElementTypes element_types); | 1178 Isolate* isolate, Handle<Object> object, ElementTypes element_types); |
1179 | 1179 |
| 1180 // Get length property and apply ToLength. |
| 1181 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( |
| 1182 Isolate* isolate, Handle<Object> object); |
| 1183 |
1180 // Check whether |object| is an instance of Error or NativeError. | 1184 // Check whether |object| is an instance of Error or NativeError. |
1181 static bool IsErrorObject(Isolate* isolate, Handle<Object> object); | 1185 static bool IsErrorObject(Isolate* isolate, Handle<Object> object); |
1182 | 1186 |
1183 // ES6 section 12.5.6 The typeof Operator | 1187 // ES6 section 12.5.6 The typeof Operator |
1184 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); | 1188 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); |
1185 | 1189 |
1186 // ES6 section 12.6 Multiplicative Operators | 1190 // ES6 section 12.6 Multiplicative Operators |
1187 MUST_USE_RESULT static MaybeHandle<Object> Multiply(Isolate* isolate, | 1191 MUST_USE_RESULT static MaybeHandle<Object> Multiply(Isolate* isolate, |
1188 Handle<Object> lhs, | 1192 Handle<Object> lhs, |
1189 Handle<Object> rhs); | 1193 Handle<Object> rhs); |
(...skipping 9557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10747 } | 10751 } |
10748 return value; | 10752 return value; |
10749 } | 10753 } |
10750 }; | 10754 }; |
10751 | 10755 |
10752 | 10756 |
10753 } // NOLINT, false-positive due to second-order macros. | 10757 } // NOLINT, false-positive due to second-order macros. |
10754 } // NOLINT, false-positive due to second-order macros. | 10758 } // NOLINT, false-positive due to second-order macros. |
10755 | 10759 |
10756 #endif // V8_OBJECTS_H_ | 10760 #endif // V8_OBJECTS_H_ |
OLD | NEW |