| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1545 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( | 1545 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( |
| 1546 Handle<Object> object, | 1546 Handle<Object> object, |
| 1547 Handle<Name> key); | 1547 Handle<Name> key); |
| 1548 MUST_USE_RESULT static MaybeHandle<Object> GetProperty( | 1548 MUST_USE_RESULT static MaybeHandle<Object> GetProperty( |
| 1549 Handle<Object> object, | 1549 Handle<Object> object, |
| 1550 Handle<Object> receiver, | 1550 Handle<Object> receiver, |
| 1551 LookupResult* result, | 1551 LookupResult* result, |
| 1552 Handle<Name> key, | 1552 Handle<Name> key, |
| 1553 PropertyAttributes* attributes); | 1553 PropertyAttributes* attributes); |
| 1554 | 1554 |
| 1555 // Get property bypassing access checks. |
| 1556 MUST_USE_RESULT static Handle<Object> DebugGetProperty( |
| 1557 Handle<Object> receiver, |
| 1558 Handle<Name> name, |
| 1559 LookupResult* result, |
| 1560 bool* has_caught = NULL); |
| 1561 |
| 1555 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( | 1562 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithDefinedGetter( |
| 1556 Handle<Object> object, | 1563 Handle<Object> object, |
| 1557 Handle<Object> receiver, | 1564 Handle<Object> receiver, |
| 1558 Handle<JSReceiver> getter); | 1565 Handle<JSReceiver> getter); |
| 1559 | 1566 |
| 1560 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( | 1567 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( |
| 1561 Isolate* isolate, | 1568 Isolate* isolate, |
| 1562 Handle<Object> object, | 1569 Handle<Object> object, |
| 1563 uint32_t index); | 1570 uint32_t index); |
| 1564 | 1571 |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 Handle<Object> old_value); | 2773 Handle<Object> old_value); |
| 2767 | 2774 |
| 2768 private: | 2775 private: |
| 2769 friend class DictionaryElementsAccessor; | 2776 friend class DictionaryElementsAccessor; |
| 2770 friend class JSReceiver; | 2777 friend class JSReceiver; |
| 2771 friend class Object; | 2778 friend class Object; |
| 2772 | 2779 |
| 2773 static void UpdateAllocationSite(Handle<JSObject> object, | 2780 static void UpdateAllocationSite(Handle<JSObject> object, |
| 2774 ElementsKind to_kind); | 2781 ElementsKind to_kind); |
| 2775 | 2782 |
| 2783 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyAfterAccessCheck( |
| 2784 Isolate* isolate, |
| 2785 Handle<Object> receiver, |
| 2786 Handle<Name> name, |
| 2787 LookupResult* result, |
| 2788 PropertyAttributes* attributes); |
| 2789 |
| 2776 // Used from Object::GetProperty(). | 2790 // Used from Object::GetProperty(). |
| 2777 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( | 2791 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( |
| 2778 Handle<JSObject> object, | 2792 Handle<JSObject> object, |
| 2779 Handle<Object> receiver, | 2793 Handle<Object> receiver, |
| 2780 LookupResult* result, | 2794 LookupResult* result, |
| 2781 Handle<Name> name, | 2795 Handle<Name> name, |
| 2782 PropertyAttributes* attributes); | 2796 PropertyAttributes* attributes); |
| 2783 | 2797 |
| 2784 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback( | 2798 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback( |
| 2785 Handle<JSObject> object, | 2799 Handle<JSObject> object, |
| (...skipping 8237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11023 } else { | 11037 } else { |
| 11024 value &= ~(1 << bit_position); | 11038 value &= ~(1 << bit_position); |
| 11025 } | 11039 } |
| 11026 return value; | 11040 return value; |
| 11027 } | 11041 } |
| 11028 }; | 11042 }; |
| 11029 | 11043 |
| 11030 } } // namespace v8::internal | 11044 } } // namespace v8::internal |
| 11031 | 11045 |
| 11032 #endif // V8_OBJECTS_H_ | 11046 #endif // V8_OBJECTS_H_ |
| OLD | NEW |