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

Side by Side Diff: src/objects.h

Issue 2091243002: Use the instance type to determine if an object is a promise. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@SimplifyIsError
Patch Set: Rebase Created 4 years, 5 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/api.cc ('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 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 V(StringWrapper) \ 964 V(StringWrapper) \
965 V(Foreign) \ 965 V(Foreign) \
966 V(Boolean) \ 966 V(Boolean) \
967 V(JSArray) \ 967 V(JSArray) \
968 V(JSArrayBuffer) \ 968 V(JSArrayBuffer) \
969 V(JSArrayBufferView) \ 969 V(JSArrayBufferView) \
970 V(JSTypedArray) \ 970 V(JSTypedArray) \
971 V(JSDataView) \ 971 V(JSDataView) \
972 V(JSProxy) \ 972 V(JSProxy) \
973 V(JSError) \ 973 V(JSError) \
974 V(JSPromise) \
974 V(JSSet) \ 975 V(JSSet) \
975 V(JSMap) \ 976 V(JSMap) \
976 V(JSSetIterator) \ 977 V(JSSetIterator) \
977 V(JSMapIterator) \ 978 V(JSMapIterator) \
978 V(JSWeakCollection) \ 979 V(JSWeakCollection) \
979 V(JSWeakMap) \ 980 V(JSWeakMap) \
980 V(JSWeakSet) \ 981 V(JSWeakSet) \
981 V(JSRegExp) \ 982 V(JSRegExp) \
982 V(HashTable) \ 983 V(HashTable) \
983 V(Dictionary) \ 984 V(Dictionary) \
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1075
1075 // ES6, section 7.2.2 IsArray. NOT to be confused with %_IsArray. 1076 // ES6, section 7.2.2 IsArray. NOT to be confused with %_IsArray.
1076 MUST_USE_RESULT static Maybe<bool> IsArray(Handle<Object> object); 1077 MUST_USE_RESULT static Maybe<bool> IsArray(Handle<Object> object);
1077 1078
1078 INLINE(bool IsNameDictionary() const); 1079 INLINE(bool IsNameDictionary() const);
1079 INLINE(bool IsGlobalDictionary() const); 1080 INLINE(bool IsGlobalDictionary() const);
1080 INLINE(bool IsSeededNumberDictionary() const); 1081 INLINE(bool IsSeededNumberDictionary() const);
1081 INLINE(bool IsUnseededNumberDictionary() const); 1082 INLINE(bool IsUnseededNumberDictionary() const);
1082 INLINE(bool IsOrderedHashSet() const); 1083 INLINE(bool IsOrderedHashSet() const);
1083 INLINE(bool IsOrderedHashMap() const); 1084 INLINE(bool IsOrderedHashMap() const);
1084 static bool IsPromise(Handle<Object> object);
1085 1085
1086 // Extract the number. 1086 // Extract the number.
1087 inline double Number() const; 1087 inline double Number() const;
1088 INLINE(bool IsNaN() const); 1088 INLINE(bool IsNaN() const);
1089 INLINE(bool IsMinusZero() const); 1089 INLINE(bool IsMinusZero() const);
1090 bool ToInt32(int32_t* value); 1090 bool ToInt32(int32_t* value);
1091 inline bool ToUint32(uint32_t* value); 1091 inline bool ToUint32(uint32_t* value);
1092 1092
1093 inline Representation OptimalRepresentation(); 1093 inline Representation OptimalRepresentation();
1094 1094
(...skipping 9732 matching lines...) Expand 10 before | Expand all | Expand 10 after
10827 } 10827 }
10828 return value; 10828 return value;
10829 } 10829 }
10830 }; 10830 };
10831 10831
10832 10832
10833 } // NOLINT, false-positive due to second-order macros. 10833 } // NOLINT, false-positive due to second-order macros.
10834 } // NOLINT, false-positive due to second-order macros. 10834 } // NOLINT, false-positive due to second-order macros.
10835 10835
10836 #endif // V8_OBJECTS_H_ 10836 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698