| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 StrictMode strict_mode); | 1515 StrictMode strict_mode); |
| 1516 | 1516 |
| 1517 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( | 1517 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( |
| 1518 Handle<Object> receiver, | 1518 Handle<Object> receiver, |
| 1519 Handle<JSReceiver> getter); | 1519 Handle<JSReceiver> getter); |
| 1520 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( | 1520 MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithDefinedSetter( |
| 1521 Handle<Object> receiver, | 1521 Handle<Object> receiver, |
| 1522 Handle<JSReceiver> setter, | 1522 Handle<JSReceiver> setter, |
| 1523 Handle<Object> value); | 1523 Handle<Object> value); |
| 1524 | 1524 |
| 1525 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyForUnscopables( |
| 1526 LookupIterator* it); |
| 1527 |
| 1525 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( | 1528 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( |
| 1526 Isolate* isolate, | 1529 Isolate* isolate, |
| 1527 Handle<Object> object, | 1530 Handle<Object> object, |
| 1528 uint32_t index); | 1531 uint32_t index); |
| 1529 | 1532 |
| 1530 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( | 1533 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( |
| 1531 Isolate* isolate, | 1534 Isolate* isolate, |
| 1532 Handle<Object> object, | 1535 Handle<Object> object, |
| 1533 Handle<Object> receiver, | 1536 Handle<Object> receiver, |
| 1534 uint32_t index); | 1537 uint32_t index); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 | 1585 |
| 1583 #ifdef OBJECT_PRINT | 1586 #ifdef OBJECT_PRINT |
| 1584 // For our gdb macros, we should perhaps change these in the future. | 1587 // For our gdb macros, we should perhaps change these in the future. |
| 1585 void Print(); | 1588 void Print(); |
| 1586 | 1589 |
| 1587 // Prints this object with details. | 1590 // Prints this object with details. |
| 1588 void Print(OStream& os); // NOLINT | 1591 void Print(OStream& os); // NOLINT |
| 1589 #endif | 1592 #endif |
| 1590 | 1593 |
| 1591 private: | 1594 private: |
| 1595 // Helper for GetProperty and GetPropertyForUnscopables. |
| 1596 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyHelper( |
| 1597 LookupIterator* it, bool force_holder_as_receiver_for_accessor_callback); |
| 1598 |
| 1592 friend class LookupIterator; | 1599 friend class LookupIterator; |
| 1593 friend class PrototypeIterator; | 1600 friend class PrototypeIterator; |
| 1594 | 1601 |
| 1595 // Return the map of the root of object's prototype chain. | 1602 // Return the map of the root of object's prototype chain. |
| 1596 Map* GetRootMap(Isolate* isolate); | 1603 Map* GetRootMap(Isolate* isolate); |
| 1597 | 1604 |
| 1598 DISALLOW_IMPLICIT_CONSTRUCTORS(Object); | 1605 DISALLOW_IMPLICIT_CONSTRUCTORS(Object); |
| 1599 }; | 1606 }; |
| 1600 | 1607 |
| 1601 | 1608 |
| (...skipping 9605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11207 } else { | 11214 } else { |
| 11208 value &= ~(1 << bit_position); | 11215 value &= ~(1 << bit_position); |
| 11209 } | 11216 } |
| 11210 return value; | 11217 return value; |
| 11211 } | 11218 } |
| 11212 }; | 11219 }; |
| 11213 | 11220 |
| 11214 } } // namespace v8::internal | 11221 } } // namespace v8::internal |
| 11215 | 11222 |
| 11216 #endif // V8_OBJECTS_H_ | 11223 #endif // V8_OBJECTS_H_ |
| OLD | NEW |