| 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 Handle<Object> x, Handle<Object> y, Strength strength = Strength::WEAK); | 1128 Handle<Object> x, Handle<Object> y, Strength strength = Strength::WEAK); |
| 1129 | 1129 |
| 1130 // ES6 section 7.2.12 Abstract Equality Comparison | 1130 // ES6 section 7.2.12 Abstract Equality Comparison |
| 1131 MUST_USE_RESULT static Maybe<bool> Equals(Handle<Object> x, Handle<Object> y); | 1131 MUST_USE_RESULT static Maybe<bool> Equals(Handle<Object> x, Handle<Object> y); |
| 1132 | 1132 |
| 1133 // ES6 section 7.2.13 Strict Equality Comparison | 1133 // ES6 section 7.2.13 Strict Equality Comparison |
| 1134 bool StrictEquals(Object* that); | 1134 bool StrictEquals(Object* that); |
| 1135 | 1135 |
| 1136 // Convert to a JSObject if needed. | 1136 // Convert to a JSObject if needed. |
| 1137 // native_context is used when creating wrapper object. | 1137 // native_context is used when creating wrapper object. |
| 1138 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1138 MUST_USE_RESULT static inline MaybeHandle<JSReceiver> ToObject( |
| 1139 Handle<Object> object); | 1139 Isolate* isolate, Handle<Object> object); |
| 1140 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( | 1140 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( |
| 1141 Isolate* isolate, Handle<Object> object, Handle<Context> context); | 1141 Isolate* isolate, Handle<Object> object, Handle<Context> context); |
| 1142 | 1142 |
| 1143 // ES6 section 7.1.14 ToPropertyKey | 1143 // ES6 section 7.1.14 ToPropertyKey |
| 1144 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | 1144 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 1145 Handle<Object> input); | 1145 Handle<Object> input); |
| 1146 | 1146 |
| 1147 // ES6 section 7.1.1 ToPrimitive | 1147 // ES6 section 7.1.1 ToPrimitive |
| 1148 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( | 1148 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( |
| 1149 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); | 1149 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); |
| (...skipping 9594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10744 } | 10744 } |
| 10745 return value; | 10745 return value; |
| 10746 } | 10746 } |
| 10747 }; | 10747 }; |
| 10748 | 10748 |
| 10749 | 10749 |
| 10750 } // NOLINT, false-positive due to second-order macros. | 10750 } // NOLINT, false-positive due to second-order macros. |
| 10751 } // NOLINT, false-positive due to second-order macros. | 10751 } // NOLINT, false-positive due to second-order macros. |
| 10752 | 10752 |
| 10753 #endif // V8_OBJECTS_H_ | 10753 #endif // V8_OBJECTS_H_ |
| OLD | NEW |