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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 | 1067 |
1068 bool BooleanValue(); // ECMA-262 9.2. | 1068 bool BooleanValue(); // ECMA-262 9.2. |
1069 | 1069 |
1070 // ES6 section 7.2.13 Strict Equality Comparison | 1070 // ES6 section 7.2.13 Strict Equality Comparison |
1071 bool StrictEquals(Object* that); | 1071 bool StrictEquals(Object* that); |
1072 | 1072 |
1073 // Convert to a JSObject if needed. | 1073 // Convert to a JSObject if needed. |
1074 // native_context is used when creating wrapper object. | 1074 // native_context is used when creating wrapper object. |
1075 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1075 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
1076 Handle<Object> object); | 1076 Handle<Object> object); |
1077 static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1077 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( |
1078 Handle<Object> object, | 1078 Isolate* isolate, Handle<Object> object, Handle<Context> context); |
1079 Handle<Context> context); | 1079 |
| 1080 // Convert to a Name if needed. |
| 1081 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 1082 Handle<Object> object); |
1080 | 1083 |
1081 MUST_USE_RESULT static MaybeHandle<Object> GetProperty( | 1084 MUST_USE_RESULT static MaybeHandle<Object> GetProperty( |
1082 LookupIterator* it, LanguageMode language_mode = SLOPPY); | 1085 LookupIterator* it, LanguageMode language_mode = SLOPPY); |
1083 | 1086 |
1084 // Implementation of [[Put]], ECMA-262 5th edition, section 8.12.5. | 1087 // Implementation of [[Put]], ECMA-262 5th edition, section 8.12.5. |
1085 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( | 1088 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( |
1086 Handle<Object> object, Handle<Name> name, Handle<Object> value, | 1089 Handle<Object> object, Handle<Name> name, Handle<Object> value, |
1087 LanguageMode language_mode, | 1090 LanguageMode language_mode, |
1088 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); | 1091 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); |
1089 | 1092 |
(...skipping 9245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10335 } else { | 10338 } else { |
10336 value &= ~(1 << bit_position); | 10339 value &= ~(1 << bit_position); |
10337 } | 10340 } |
10338 return value; | 10341 return value; |
10339 } | 10342 } |
10340 }; | 10343 }; |
10341 | 10344 |
10342 } } // namespace v8::internal | 10345 } } // namespace v8::internal |
10343 | 10346 |
10344 #endif // V8_OBJECTS_H_ | 10347 #endif // V8_OBJECTS_H_ |
OLD | NEW |