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