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" |
11 #include "src/bailout-reason.h" | 11 #include "src/bailout-reason.h" |
12 #include "src/base/bits.h" | 12 #include "src/base/bits.h" |
13 #include "src/base/flags.h" | 13 #include "src/base/flags.h" |
14 #include "src/base/smart-pointers.h" | 14 #include "src/base/smart-pointers.h" |
15 #include "src/builtins.h" | 15 #include "src/builtins.h" |
16 #include "src/checks.h" | 16 #include "src/checks.h" |
17 #include "src/elements-kind.h" | 17 #include "src/elements-kind.h" |
18 #include "src/field-index.h" | 18 #include "src/field-index.h" |
19 #include "src/flags.h" | 19 #include "src/flags.h" |
20 #include "src/list.h" | 20 #include "src/list.h" |
21 #include "src/messages.h" | |
22 #include "src/property-details.h" | 21 #include "src/property-details.h" |
| 22 #include "src/unicode.h" |
23 #include "src/unicode-decoder.h" | 23 #include "src/unicode-decoder.h" |
24 #include "src/unicode.h" | |
25 #include "src/zone.h" | 24 #include "src/zone.h" |
26 | 25 |
27 #if V8_TARGET_ARCH_ARM | 26 #if V8_TARGET_ARCH_ARM |
28 #include "src/arm/constants-arm.h" // NOLINT | 27 #include "src/arm/constants-arm.h" // NOLINT |
29 #elif V8_TARGET_ARCH_ARM64 | 28 #elif V8_TARGET_ARCH_ARM64 |
30 #include "src/arm64/constants-arm64.h" // NOLINT | 29 #include "src/arm64/constants-arm64.h" // NOLINT |
31 #elif V8_TARGET_ARCH_MIPS | 30 #elif V8_TARGET_ARCH_MIPS |
32 #include "src/mips/constants-mips.h" // NOLINT | 31 #include "src/mips/constants-mips.h" // NOLINT |
33 #elif V8_TARGET_ARCH_MIPS64 | 32 #elif V8_TARGET_ARCH_MIPS64 |
34 #include "src/mips64/constants-mips64.h" // NOLINT | 33 #include "src/mips64/constants-mips64.h" // NOLINT |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 Handle<Object> input); | 1170 Handle<Object> input); |
1172 | 1171 |
1173 // ES6 section 7.1.14 ToPropertyKey | 1172 // ES6 section 7.1.14 ToPropertyKey |
1174 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey( | 1173 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey( |
1175 Isolate* isolate, Handle<Object> value); | 1174 Isolate* isolate, Handle<Object> value); |
1176 | 1175 |
1177 // ES6 section 7.1.15 ToLength | 1176 // ES6 section 7.1.15 ToLength |
1178 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, | 1177 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, |
1179 Handle<Object> input); | 1178 Handle<Object> input); |
1180 | 1179 |
1181 // ES6 section 7.1.17 ToIndex | |
1182 MUST_USE_RESULT static MaybeHandle<Object> ToIndex( | |
1183 Isolate* isolate, Handle<Object> input, | |
1184 MessageTemplate::Template error_index); | |
1185 | |
1186 // ES6 section 7.3.9 GetMethod | 1180 // ES6 section 7.3.9 GetMethod |
1187 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( | 1181 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
1188 Handle<JSReceiver> receiver, Handle<Name> name); | 1182 Handle<JSReceiver> receiver, Handle<Name> name); |
1189 | 1183 |
1190 // ES6 section 7.3.17 CreateListFromArrayLike | 1184 // ES6 section 7.3.17 CreateListFromArrayLike |
1191 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( | 1185 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( |
1192 Isolate* isolate, Handle<Object> object, ElementTypes element_types); | 1186 Isolate* isolate, Handle<Object> object, ElementTypes element_types); |
1193 | 1187 |
1194 // Get length property and apply ToLength. | 1188 // Get length property and apply ToLength. |
1195 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( | 1189 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( |
(...skipping 9732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10928 } | 10922 } |
10929 return value; | 10923 return value; |
10930 } | 10924 } |
10931 }; | 10925 }; |
10932 | 10926 |
10933 | 10927 |
10934 } // NOLINT, false-positive due to second-order macros. | 10928 } // NOLINT, false-positive due to second-order macros. |
10935 } // NOLINT, false-positive due to second-order macros. | 10929 } // NOLINT, false-positive due to second-order macros. |
10936 | 10930 |
10937 #endif // V8_OBJECTS_H_ | 10931 #endif // V8_OBJECTS_H_ |
OLD | NEW |