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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3410 Object* new_index_cache); | 3410 Object* new_index_cache); |
3411 | 3411 |
3412 bool CanHoldValue(int descriptor, Object* value); | 3412 bool CanHoldValue(int descriptor, Object* value); |
3413 | 3413 |
3414 // Accessors for fetching instance descriptor at descriptor number. | 3414 // Accessors for fetching instance descriptor at descriptor number. |
3415 inline Name* GetKey(int descriptor_number); | 3415 inline Name* GetKey(int descriptor_number); |
3416 inline Object** GetKeySlot(int descriptor_number); | 3416 inline Object** GetKeySlot(int descriptor_number); |
3417 inline Object* GetValue(int descriptor_number); | 3417 inline Object* GetValue(int descriptor_number); |
3418 inline void SetValue(int descriptor_number, Object* value); | 3418 inline void SetValue(int descriptor_number, Object* value); |
3419 inline Object** GetValueSlot(int descriptor_number); | 3419 inline Object** GetValueSlot(int descriptor_number); |
| 3420 static inline int GetValueOffset(int descriptor_number); |
3420 inline Object** GetDescriptorStartSlot(int descriptor_number); | 3421 inline Object** GetDescriptorStartSlot(int descriptor_number); |
3421 inline Object** GetDescriptorEndSlot(int descriptor_number); | 3422 inline Object** GetDescriptorEndSlot(int descriptor_number); |
3422 inline PropertyDetails GetDetails(int descriptor_number); | 3423 inline PropertyDetails GetDetails(int descriptor_number); |
3423 inline PropertyType GetType(int descriptor_number); | 3424 inline PropertyType GetType(int descriptor_number); |
3424 inline int GetFieldIndex(int descriptor_number); | 3425 inline int GetFieldIndex(int descriptor_number); |
3425 inline HeapType* GetFieldType(int descriptor_number); | 3426 inline HeapType* GetFieldType(int descriptor_number); |
3426 inline Object* GetConstant(int descriptor_number); | 3427 inline Object* GetConstant(int descriptor_number); |
3427 inline Object* GetCallbacksObject(int descriptor_number); | 3428 inline Object* GetCallbacksObject(int descriptor_number); |
3428 inline AccessorDescriptor* GetCallbacks(int descriptor_number); | 3429 inline AccessorDescriptor* GetCallbacks(int descriptor_number); |
3429 | 3430 |
(...skipping 7835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11265 } else { | 11266 } else { |
11266 value &= ~(1 << bit_position); | 11267 value &= ~(1 << bit_position); |
11267 } | 11268 } |
11268 return value; | 11269 return value; |
11269 } | 11270 } |
11270 }; | 11271 }; |
11271 | 11272 |
11272 } } // namespace v8::internal | 11273 } } // namespace v8::internal |
11273 | 11274 |
11274 #endif // V8_OBJECTS_H_ | 11275 #endif // V8_OBJECTS_H_ |
OLD | NEW |