OLD | NEW |
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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 INLINE(bool IsFixedArrayBase() const); | 1045 INLINE(bool IsFixedArrayBase() const); |
1046 INLINE(bool IsExternal() const); | 1046 INLINE(bool IsExternal() const); |
1047 INLINE(bool IsAccessorInfo() const); | 1047 INLINE(bool IsAccessorInfo() const); |
1048 | 1048 |
1049 INLINE(bool IsStruct() const); | 1049 INLINE(bool IsStruct() const); |
1050 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) \ | 1050 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) \ |
1051 INLINE(bool Is##Name() const); | 1051 INLINE(bool Is##Name() const); |
1052 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) | 1052 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) |
1053 #undef DECLARE_STRUCT_PREDICATE | 1053 #undef DECLARE_STRUCT_PREDICATE |
1054 | 1054 |
| 1055 // ES6, section 7.2.2 IsArray. NOT to be confused with %_IsArray. |
| 1056 INLINE(Maybe<bool> IsArray() const); |
| 1057 |
1055 // ES6, section 7.2.3 IsCallable. | 1058 // ES6, section 7.2.3 IsCallable. |
1056 INLINE(bool IsCallable() const); | 1059 INLINE(bool IsCallable() const); |
1057 | 1060 |
1058 // ES6, section 7.2.4 IsConstructor. | 1061 // ES6, section 7.2.4 IsConstructor. |
1059 INLINE(bool IsConstructor() const); | 1062 INLINE(bool IsConstructor() const); |
1060 | 1063 |
1061 INLINE(bool IsTemplateInfo()) const; | 1064 INLINE(bool IsTemplateInfo()) const; |
1062 INLINE(bool IsNameDictionary() const); | 1065 INLINE(bool IsNameDictionary() const); |
1063 INLINE(bool IsGlobalDictionary() const); | 1066 INLINE(bool IsGlobalDictionary() const); |
1064 INLINE(bool IsSeededNumberDictionary() const); | 1067 INLINE(bool IsSeededNumberDictionary() const); |
(...skipping 8416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9481 DECL_ACCESSORS(handler, Object) | 9484 DECL_ACCESSORS(handler, Object) |
9482 // [target]: The target property. | 9485 // [target]: The target property. |
9483 DECL_ACCESSORS(target, Object) | 9486 DECL_ACCESSORS(target, Object) |
9484 // [hash]: The hash code property (undefined if not initialized yet). | 9487 // [hash]: The hash code property (undefined if not initialized yet). |
9485 DECL_ACCESSORS(hash, Object) | 9488 DECL_ACCESSORS(hash, Object) |
9486 | 9489 |
9487 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); | 9490 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); |
9488 | 9491 |
9489 DECLARE_CAST(JSProxy) | 9492 DECLARE_CAST(JSProxy) |
9490 | 9493 |
9491 bool IsRevoked(); | 9494 bool IsRevoked() const; |
9492 | 9495 |
9493 // ES6 9.5.1 | 9496 // ES6 9.5.1 |
9494 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9497 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
9495 | 9498 |
9496 // ES6 9.5.2 | 9499 // ES6 9.5.2 |
9497 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy, | 9500 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy, |
9498 Handle<Object> value, | 9501 Handle<Object> value, |
9499 bool from_javascript, | 9502 bool from_javascript, |
9500 ShouldThrow should_throw); | 9503 ShouldThrow should_throw); |
9501 // ES6 9.5.3 | 9504 // ES6 9.5.3 |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10708 } | 10711 } |
10709 return value; | 10712 return value; |
10710 } | 10713 } |
10711 }; | 10714 }; |
10712 | 10715 |
10713 | 10716 |
10714 } // NOLINT, false-positive due to second-order macros. | 10717 } // NOLINT, false-positive due to second-order macros. |
10715 } // NOLINT, false-positive due to second-order macros. | 10718 } // NOLINT, false-positive due to second-order macros. |
10716 | 10719 |
10717 #endif // V8_OBJECTS_H_ | 10720 #endif // V8_OBJECTS_H_ |
OLD | NEW |