OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2073 // Access fast-case object properties at index. | 2073 // Access fast-case object properties at index. |
2074 static Handle<Object> FastPropertyAt(Handle<JSObject> object, | 2074 static Handle<Object> FastPropertyAt(Handle<JSObject> object, |
2075 Representation representation, | 2075 Representation representation, |
2076 FieldIndex index); | 2076 FieldIndex index); |
2077 inline Object* RawFastPropertyAt(FieldIndex index); | 2077 inline Object* RawFastPropertyAt(FieldIndex index); |
2078 inline double RawFastDoublePropertyAt(FieldIndex index); | 2078 inline double RawFastDoublePropertyAt(FieldIndex index); |
2079 | 2079 |
2080 inline void FastPropertyAtPut(FieldIndex index, Object* value); | 2080 inline void FastPropertyAtPut(FieldIndex index, Object* value); |
2081 inline void RawFastPropertyAtPut(FieldIndex index, Object* value); | 2081 inline void RawFastPropertyAtPut(FieldIndex index, Object* value); |
2082 inline void RawFastDoublePropertyAtPut(FieldIndex index, double value); | 2082 inline void RawFastDoublePropertyAtPut(FieldIndex index, double value); |
2083 void WriteToField(int descriptor, Object* value); | 2083 inline void WriteToField(int descriptor, Object* value); |
2084 | 2084 |
2085 // Access to in object properties. | 2085 // Access to in object properties. |
2086 inline int GetInObjectPropertyOffset(int index); | 2086 inline int GetInObjectPropertyOffset(int index); |
2087 inline Object* InObjectPropertyAt(int index); | 2087 inline Object* InObjectPropertyAt(int index); |
2088 inline Object* InObjectPropertyAtPut(int index, | 2088 inline Object* InObjectPropertyAtPut(int index, |
2089 Object* value, | 2089 Object* value, |
2090 WriteBarrierMode mode | 2090 WriteBarrierMode mode |
2091 = UPDATE_WRITE_BARRIER); | 2091 = UPDATE_WRITE_BARRIER); |
2092 | 2092 |
2093 // Set the object's prototype (only JSReceiver and null are allowed values). | 2093 // Set the object's prototype (only JSReceiver and null are allowed values). |
(...skipping 8889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10983 } else { | 10983 } else { |
10984 value &= ~(1 << bit_position); | 10984 value &= ~(1 << bit_position); |
10985 } | 10985 } |
10986 return value; | 10986 return value; |
10987 } | 10987 } |
10988 }; | 10988 }; |
10989 | 10989 |
10990 } } // namespace v8::internal | 10990 } } // namespace v8::internal |
10991 | 10991 |
10992 #endif // V8_OBJECTS_H_ | 10992 #endif // V8_OBJECTS_H_ |
OLD | NEW |