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 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 PropertyAttributes* attributes); | 1568 PropertyAttributes* attributes); |
1569 | 1569 |
1570 MUST_USE_RESULT MaybeObject* GetProperty(Object* receiver, | 1570 MUST_USE_RESULT MaybeObject* GetProperty(Object* receiver, |
1571 LookupResult* result, | 1571 LookupResult* result, |
1572 Name* key, | 1572 Name* key, |
1573 PropertyAttributes* attributes); | 1573 PropertyAttributes* attributes); |
1574 | 1574 |
1575 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, | 1575 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, |
1576 JSReceiver* getter); | 1576 JSReceiver* getter); |
1577 | 1577 |
1578 static Handle<Object> GetElement(Isolate* isolate, | 1578 static inline Handle<Object> GetElement(Isolate* isolate, |
1579 Handle<Object> object, | 1579 Handle<Object> object, |
1580 uint32_t index); | 1580 uint32_t index); |
1581 MUST_USE_RESULT inline MaybeObject* GetElement(Isolate* isolate, | 1581 |
1582 uint32_t index); | |
1583 // For use when we know that no exception can be thrown. | 1582 // For use when we know that no exception can be thrown. |
1584 inline Object* GetElementNoExceptionThrown(Isolate* isolate, uint32_t index); | 1583 inline Object* GetElementNoExceptionThrown(Isolate* isolate, uint32_t index); |
1585 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, | 1584 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, |
1586 Object* receiver, | 1585 Object* receiver, |
1587 uint32_t index); | 1586 uint32_t index); |
1588 | 1587 |
1589 // Return the object's prototype (might be Heap::null_value()). | 1588 // Return the object's prototype (might be Heap::null_value()). |
1590 Object* GetPrototype(Isolate* isolate); | 1589 Object* GetPrototype(Isolate* isolate); |
1591 Map* GetMarkerMap(Isolate* isolate); | 1590 Map* GetMarkerMap(Isolate* isolate); |
1592 | 1591 |
(...skipping 9188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10781 } else { | 10780 } else { |
10782 value &= ~(1 << bit_position); | 10781 value &= ~(1 << bit_position); |
10783 } | 10782 } |
10784 return value; | 10783 return value; |
10785 } | 10784 } |
10786 }; | 10785 }; |
10787 | 10786 |
10788 } } // namespace v8::internal | 10787 } } // namespace v8::internal |
10789 | 10788 |
10790 #endif // V8_OBJECTS_H_ | 10789 #endif // V8_OBJECTS_H_ |
OLD | NEW |