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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 PropertyAttributes* attributes); | 1577 PropertyAttributes* attributes); |
1578 | 1578 |
1579 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, | 1579 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, |
1580 JSReceiver* getter); | 1580 JSReceiver* getter); |
1581 | 1581 |
1582 static inline Handle<Object> GetElement(Isolate* isolate, | 1582 static inline Handle<Object> GetElement(Isolate* isolate, |
1583 Handle<Object> object, | 1583 Handle<Object> object, |
1584 uint32_t index); | 1584 uint32_t index); |
1585 | 1585 |
1586 // For use when we know that no exception can be thrown. | 1586 // For use when we know that no exception can be thrown. |
1587 inline Object* GetElementNoExceptionThrown(Isolate* isolate, uint32_t index); | 1587 static inline Handle<Object> GetElementNoExceptionThrown( |
| 1588 Isolate* isolate, |
| 1589 Handle<Object> object, |
| 1590 uint32_t index); |
1588 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, | 1591 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, |
1589 Object* receiver, | 1592 Object* receiver, |
1590 uint32_t index); | 1593 uint32_t index); |
1591 | 1594 |
1592 // Return the object's prototype (might be Heap::null_value()). | 1595 // Return the object's prototype (might be Heap::null_value()). |
1593 Object* GetPrototype(Isolate* isolate); | 1596 Object* GetPrototype(Isolate* isolate); |
1594 Map* GetMarkerMap(Isolate* isolate); | 1597 Map* GetMarkerMap(Isolate* isolate); |
1595 | 1598 |
1596 // Returns the permanent hash code associated with this object. May return | 1599 // Returns the permanent hash code associated with this object. May return |
1597 // undefined if not yet created. | 1600 // undefined if not yet created. |
(...skipping 9195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10793 } else { | 10796 } else { |
10794 value &= ~(1 << bit_position); | 10797 value &= ~(1 << bit_position); |
10795 } | 10798 } |
10796 return value; | 10799 return value; |
10797 } | 10800 } |
10798 }; | 10801 }; |
10799 | 10802 |
10800 } } // namespace v8::internal | 10803 } } // namespace v8::internal |
10801 | 10804 |
10802 #endif // V8_OBJECTS_H_ | 10805 #endif // V8_OBJECTS_H_ |
OLD | NEW |