OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 inline Object* FastPropertyAtPut(int index, Object* value); | 1923 inline Object* FastPropertyAtPut(int index, Object* value); |
1924 | 1924 |
1925 // Access to in object properties. | 1925 // Access to in object properties. |
1926 inline int GetInObjectPropertyOffset(int index); | 1926 inline int GetInObjectPropertyOffset(int index); |
1927 inline Object* InObjectPropertyAt(int index); | 1927 inline Object* InObjectPropertyAt(int index); |
1928 inline Object* InObjectPropertyAtPut(int index, | 1928 inline Object* InObjectPropertyAtPut(int index, |
1929 Object* value, | 1929 Object* value, |
1930 WriteBarrierMode mode | 1930 WriteBarrierMode mode |
1931 = UPDATE_WRITE_BARRIER); | 1931 = UPDATE_WRITE_BARRIER); |
1932 | 1932 |
1933 // initializes the body after properties slot, properties slot is | 1933 // Initializes the body after properties slot, properties slot is |
1934 // initialized by set_properties | 1934 // initialized by set_properties. Fill the pre-allocated fields with |
| 1935 // pre_allocated_value and the rest with filler_value. |
1935 // Note: this call does not update write barrier, it is caller's | 1936 // Note: this call does not update write barrier, it is caller's |
1936 // reponsibility to ensure that *v* can be collected without WB here. | 1937 // reponsibility to ensure that *v* can be collected without WB here. |
1937 inline void InitializeBody(int object_size, Object* value); | 1938 inline void InitializeBody(Map* map, |
| 1939 Object* pre_allocated_value, |
| 1940 Object* filler_value); |
1938 | 1941 |
1939 // Check whether this object references another object | 1942 // Check whether this object references another object |
1940 bool ReferencesObject(Object* obj); | 1943 bool ReferencesObject(Object* obj); |
1941 | 1944 |
1942 // Casting. | 1945 // Casting. |
1943 static inline JSObject* cast(Object* obj); | 1946 static inline JSObject* cast(Object* obj); |
1944 | 1947 |
1945 // Disalow further properties to be added to the object. | 1948 // Disalow further properties to be added to the object. |
1946 MUST_USE_RESULT MaybeObject* PreventExtensions(); | 1949 MUST_USE_RESULT MaybeObject* PreventExtensions(); |
1947 | 1950 |
(...skipping 5522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7470 } else { | 7473 } else { |
7471 value &= ~(1 << bit_position); | 7474 value &= ~(1 << bit_position); |
7472 } | 7475 } |
7473 return value; | 7476 return value; |
7474 } | 7477 } |
7475 }; | 7478 }; |
7476 | 7479 |
7477 } } // namespace v8::internal | 7480 } } // namespace v8::internal |
7478 | 7481 |
7479 #endif // V8_OBJECTS_H_ | 7482 #endif // V8_OBJECTS_H_ |
OLD | NEW |