| 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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 bool StrictEquals(Object* that); | 1106 bool StrictEquals(Object* that); |
| 1107 | 1107 |
| 1108 // Convert to a JSObject if needed. | 1108 // Convert to a JSObject if needed. |
| 1109 // native_context is used when creating wrapper object. | 1109 // native_context is used when creating wrapper object. |
| 1110 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1110 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
| 1111 Handle<Object> object); | 1111 Handle<Object> object); |
| 1112 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( | 1112 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( |
| 1113 Isolate* isolate, Handle<Object> object, Handle<Context> context); | 1113 Isolate* isolate, Handle<Object> object, Handle<Context> context); |
| 1114 | 1114 |
| 1115 // ES6 section 7.1.14 ToPropertyKey | 1115 // ES6 section 7.1.14 ToPropertyKey |
| 1116 MUST_USE_RESULT static inline MaybeHandle<Name> ToName(Isolate* isolate, | 1116 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 1117 Handle<Object> input); | 1117 Handle<Object> input); |
| 1118 | 1118 |
| 1119 // ES6 section 7.1.1 ToPrimitive | 1119 // ES6 section 7.1.1 ToPrimitive |
| 1120 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( | 1120 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( |
| 1121 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); | 1121 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); |
| 1122 | 1122 |
| 1123 // ES6 section 7.1.3 ToNumber | 1123 // ES6 section 7.1.3 ToNumber |
| 1124 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input); | 1124 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input); |
| 1125 | 1125 |
| 1126 // ES6 section 7.1.12 ToString | 1126 // ES6 section 7.1.12 ToString |
| 1127 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate, | 1127 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate, |
| (...skipping 9444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10572 | 10572 |
| 10573 Isolate* isolate_; | 10573 Isolate* isolate_; |
| 10574 Handle<FixedArray> keys_; | 10574 Handle<FixedArray> keys_; |
| 10575 Handle<OrderedHashSet> set_; | 10575 Handle<OrderedHashSet> set_; |
| 10576 int length_; | 10576 int length_; |
| 10577 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10577 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10578 }; | 10578 }; |
| 10579 } } // namespace v8::internal | 10579 } } // namespace v8::internal |
| 10580 | 10580 |
| 10581 #endif // V8_OBJECTS_H_ | 10581 #endif // V8_OBJECTS_H_ |
| OLD | NEW |