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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 | 1582 |
1583 static inline Handle<Object> GetElement(Isolate* isolate, | 1583 static inline Handle<Object> GetElement(Isolate* isolate, |
1584 Handle<Object> object, | 1584 Handle<Object> object, |
1585 uint32_t index); | 1585 uint32_t index); |
1586 | 1586 |
1587 // For use when we know that no exception can be thrown. | 1587 // For use when we know that no exception can be thrown. |
1588 static inline Handle<Object> GetElementNoExceptionThrown( | 1588 static inline Handle<Object> GetElementNoExceptionThrown( |
1589 Isolate* isolate, | 1589 Isolate* isolate, |
1590 Handle<Object> object, | 1590 Handle<Object> object, |
1591 uint32_t index); | 1591 uint32_t index); |
1592 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, | 1592 |
1593 Object* receiver, | 1593 static Handle<Object> GetElementWithReceiver(Isolate* isolate, |
1594 uint32_t index); | 1594 Handle<Object> object, |
| 1595 Handle<Object> receiver, |
| 1596 uint32_t index); |
1595 | 1597 |
1596 // Return the object's prototype (might be Heap::null_value()). | 1598 // Return the object's prototype (might be Heap::null_value()). |
1597 Object* GetPrototype(Isolate* isolate); | 1599 Object* GetPrototype(Isolate* isolate); |
1598 Map* GetMarkerMap(Isolate* isolate); | 1600 Map* GetMarkerMap(Isolate* isolate); |
1599 | 1601 |
1600 // Returns the permanent hash code associated with this object. May return | 1602 // Returns the permanent hash code associated with this object. May return |
1601 // undefined if not yet created. | 1603 // undefined if not yet created. |
1602 Object* GetHash(); | 1604 Object* GetHash(); |
1603 | 1605 |
1604 // Returns the permanent hash code associated with this object depending on | 1606 // Returns the permanent hash code associated with this object depending on |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 Handle<JSObject> object, | 2475 Handle<JSObject> object, |
2474 uint32_t index, | 2476 uint32_t index, |
2475 Handle<Object> value, | 2477 Handle<Object> value, |
2476 PropertyAttributes attributes, | 2478 PropertyAttributes attributes, |
2477 StrictMode strict_mode, | 2479 StrictMode strict_mode, |
2478 bool check_prototype = true, | 2480 bool check_prototype = true, |
2479 SetPropertyMode set_mode = SET_PROPERTY); | 2481 SetPropertyMode set_mode = SET_PROPERTY); |
2480 | 2482 |
2481 // Returns the index'th element. | 2483 // Returns the index'th element. |
2482 // The undefined object if index is out of bounds. | 2484 // The undefined object if index is out of bounds. |
2483 MUST_USE_RESULT MaybeObject* GetElementWithInterceptor(Object* receiver, | 2485 static Handle<Object> GetElementWithInterceptor(Handle<JSObject> object, |
2484 uint32_t index); | 2486 Handle<Object> receiver, |
| 2487 uint32_t index); |
2485 | 2488 |
2486 enum SetFastElementsCapacitySmiMode { | 2489 enum SetFastElementsCapacitySmiMode { |
2487 kAllowSmiElements, | 2490 kAllowSmiElements, |
2488 kForceSmiElements, | 2491 kForceSmiElements, |
2489 kDontAllowSmiElements | 2492 kDontAllowSmiElements |
2490 }; | 2493 }; |
2491 | 2494 |
2492 static Handle<FixedArray> SetFastElementsCapacityAndLength( | 2495 static Handle<FixedArray> SetFastElementsCapacityAndLength( |
2493 Handle<JSObject> object, | 2496 Handle<JSObject> object, |
2494 int capacity, | 2497 int capacity, |
(...skipping 8291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10786 } else { | 10789 } else { |
10787 value &= ~(1 << bit_position); | 10790 value &= ~(1 << bit_position); |
10788 } | 10791 } |
10789 return value; | 10792 return value; |
10790 } | 10793 } |
10791 }; | 10794 }; |
10792 | 10795 |
10793 } } // namespace v8::internal | 10796 } } // namespace v8::internal |
10794 | 10797 |
10795 #endif // V8_OBJECTS_H_ | 10798 #endif // V8_OBJECTS_H_ |
OLD | NEW |