| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "src/assert-scope.h" | 11 #include "src/assert-scope.h" |
| 12 #include "src/bailout-reason.h" | 12 #include "src/bailout-reason.h" |
| 13 #include "src/base/bits.h" | 13 #include "src/base/bits.h" |
| 14 #include "src/base/flags.h" | 14 #include "src/base/flags.h" |
| 15 #include "src/builtins/builtins.h" | 15 #include "src/builtins/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" |
| 21 #include "src/property-details.h" | 22 #include "src/property-details.h" |
| 22 #include "src/unicode-decoder.h" | 23 #include "src/unicode-decoder.h" |
| 23 #include "src/unicode.h" | 24 #include "src/unicode.h" |
| 24 #include "src/zone.h" | 25 #include "src/zone.h" |
| 25 | 26 |
| 26 #if V8_TARGET_ARCH_ARM | 27 #if V8_TARGET_ARCH_ARM |
| 27 #include "src/arm/constants-arm.h" // NOLINT | 28 #include "src/arm/constants-arm.h" // NOLINT |
| 28 #elif V8_TARGET_ARCH_ARM64 | 29 #elif V8_TARGET_ARCH_ARM64 |
| 29 #include "src/arm64/constants-arm64.h" // NOLINT | 30 #include "src/arm64/constants-arm64.h" // NOLINT |
| 30 #elif V8_TARGET_ARCH_MIPS | 31 #elif V8_TARGET_ARCH_MIPS |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 Handle<Object> input); | 1199 Handle<Object> input); |
| 1199 | 1200 |
| 1200 // ES6 section 7.1.14 ToPropertyKey | 1201 // ES6 section 7.1.14 ToPropertyKey |
| 1201 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey( | 1202 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey( |
| 1202 Isolate* isolate, Handle<Object> value); | 1203 Isolate* isolate, Handle<Object> value); |
| 1203 | 1204 |
| 1204 // ES6 section 7.1.15 ToLength | 1205 // ES6 section 7.1.15 ToLength |
| 1205 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, | 1206 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, |
| 1206 Handle<Object> input); | 1207 Handle<Object> input); |
| 1207 | 1208 |
| 1209 // ES6 section 7.1.17 ToIndex |
| 1210 MUST_USE_RESULT static MaybeHandle<Object> ToIndex( |
| 1211 Isolate* isolate, Handle<Object> input, |
| 1212 MessageTemplate::Template error_index); |
| 1213 |
| 1208 // ES6 section 7.3.9 GetMethod | 1214 // ES6 section 7.3.9 GetMethod |
| 1209 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( | 1215 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
| 1210 Handle<JSReceiver> receiver, Handle<Name> name); | 1216 Handle<JSReceiver> receiver, Handle<Name> name); |
| 1211 | 1217 |
| 1212 // ES6 section 7.3.17 CreateListFromArrayLike | 1218 // ES6 section 7.3.17 CreateListFromArrayLike |
| 1213 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( | 1219 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( |
| 1214 Isolate* isolate, Handle<Object> object, ElementTypes element_types); | 1220 Isolate* isolate, Handle<Object> object, ElementTypes element_types); |
| 1215 | 1221 |
| 1216 // Get length property and apply ToLength. | 1222 // Get length property and apply ToLength. |
| 1217 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( | 1223 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( |
| (...skipping 9863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11081 } | 11087 } |
| 11082 return value; | 11088 return value; |
| 11083 } | 11089 } |
| 11084 }; | 11090 }; |
| 11085 | 11091 |
| 11086 | 11092 |
| 11087 } // NOLINT, false-positive due to second-order macros. | 11093 } // NOLINT, false-positive due to second-order macros. |
| 11088 } // NOLINT, false-positive due to second-order macros. | 11094 } // NOLINT, false-positive due to second-order macros. |
| 11089 | 11095 |
| 11090 #endif // V8_OBJECTS_H_ | 11096 #endif // V8_OBJECTS_H_ |
| OLD | NEW |