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 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 Handle<JSObject> object); | 2606 Handle<JSObject> object); |
2607 | 2607 |
2608 // Transform slow named properties to fast variants. | 2608 // Transform slow named properties to fast variants. |
2609 static void TransformToFastProperties(Handle<JSObject> object, | 2609 static void TransformToFastProperties(Handle<JSObject> object, |
2610 int unused_property_fields); | 2610 int unused_property_fields); |
2611 | 2611 |
2612 // Access fast-case object properties at index. | 2612 // Access fast-case object properties at index. |
2613 MUST_USE_RESULT inline MaybeObject* FastPropertyAt( | 2613 MUST_USE_RESULT inline MaybeObject* FastPropertyAt( |
2614 Representation representation, | 2614 Representation representation, |
2615 int index); | 2615 int index); |
| 2616 static Handle<Object> FastPropertyAt(Handle<JSObject> object, |
| 2617 Representation representation, |
| 2618 int index); |
2616 inline Object* RawFastPropertyAt(int index); | 2619 inline Object* RawFastPropertyAt(int index); |
2617 inline void FastPropertyAtPut(int index, Object* value); | 2620 inline void FastPropertyAtPut(int index, Object* value); |
2618 | 2621 |
2619 // Access to in object properties. | 2622 // Access to in object properties. |
2620 inline int GetInObjectPropertyOffset(int index); | 2623 inline int GetInObjectPropertyOffset(int index); |
2621 inline Object* InObjectPropertyAt(int index); | 2624 inline Object* InObjectPropertyAt(int index); |
2622 inline Object* InObjectPropertyAtPut(int index, | 2625 inline Object* InObjectPropertyAtPut(int index, |
2623 Object* value, | 2626 Object* value, |
2624 WriteBarrierMode mode | 2627 WriteBarrierMode mode |
2625 = UPDATE_WRITE_BARRIER); | 2628 = UPDATE_WRITE_BARRIER); |
(...skipping 8190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10816 } else { | 10819 } else { |
10817 value &= ~(1 << bit_position); | 10820 value &= ~(1 << bit_position); |
10818 } | 10821 } |
10819 return value; | 10822 return value; |
10820 } | 10823 } |
10821 }; | 10824 }; |
10822 | 10825 |
10823 } } // namespace v8::internal | 10826 } } // namespace v8::internal |
10824 | 10827 |
10825 #endif // V8_OBJECTS_H_ | 10828 #endif // V8_OBJECTS_H_ |
OLD | NEW |