| 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 10322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10333 DECL_ACCESSORS(setter, Object) | 10333 DECL_ACCESSORS(setter, Object) |
| 10334 | 10334 |
| 10335 DECLARE_CAST(AccessorPair) | 10335 DECLARE_CAST(AccessorPair) |
| 10336 | 10336 |
| 10337 static Handle<AccessorPair> Copy(Handle<AccessorPair> pair); | 10337 static Handle<AccessorPair> Copy(Handle<AccessorPair> pair); |
| 10338 | 10338 |
| 10339 inline Object* get(AccessorComponent component); | 10339 inline Object* get(AccessorComponent component); |
| 10340 inline void set(AccessorComponent component, Object* value); | 10340 inline void set(AccessorComponent component, Object* value); |
| 10341 | 10341 |
| 10342 // Note: Returns undefined instead in case of a hole. | 10342 // Note: Returns undefined instead in case of a hole. |
| 10343 Object* GetComponent(AccessorComponent component); | 10343 static Handle<Object> GetComponent(Handle<AccessorPair> accessor_pair, |
| 10344 AccessorComponent component); |
| 10344 | 10345 |
| 10345 // Set both components, skipping arguments which are a JavaScript null. | 10346 // Set both components, skipping arguments which are a JavaScript null. |
| 10346 inline void SetComponents(Object* getter, Object* setter); | 10347 inline void SetComponents(Object* getter, Object* setter); |
| 10347 | 10348 |
| 10348 inline bool Equals(AccessorPair* pair); | 10349 inline bool Equals(AccessorPair* pair); |
| 10349 inline bool Equals(Object* getter_value, Object* setter_value); | 10350 inline bool Equals(Object* getter_value, Object* setter_value); |
| 10350 | 10351 |
| 10351 inline bool ContainsAccessor(); | 10352 inline bool ContainsAccessor(); |
| 10352 | 10353 |
| 10353 // Dispatched behavior. | 10354 // Dispatched behavior. |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10794 } | 10795 } |
| 10795 return value; | 10796 return value; |
| 10796 } | 10797 } |
| 10797 }; | 10798 }; |
| 10798 | 10799 |
| 10799 | 10800 |
| 10800 } // NOLINT, false-positive due to second-order macros. | 10801 } // NOLINT, false-positive due to second-order macros. |
| 10801 } // NOLINT, false-positive due to second-order macros. | 10802 } // NOLINT, false-positive due to second-order macros. |
| 10802 | 10803 |
| 10803 #endif // V8_OBJECTS_H_ | 10804 #endif // V8_OBJECTS_H_ |
| OLD | NEW |