| 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/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 6361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6372 Handle<Map> map, Handle<Name> name, AccessorComponent component, | 6372 Handle<Map> map, Handle<Name> name, AccessorComponent component, |
| 6373 Handle<Object> accessor, PropertyAttributes attributes); | 6373 Handle<Object> accessor, PropertyAttributes attributes); |
| 6374 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor, | 6374 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor, |
| 6375 PropertyAttributes attributes); | 6375 PropertyAttributes attributes); |
| 6376 | 6376 |
| 6377 inline void AppendDescriptor(Descriptor* desc); | 6377 inline void AppendDescriptor(Descriptor* desc); |
| 6378 | 6378 |
| 6379 // Returns a copy of the map, with all transitions dropped from the | 6379 // Returns a copy of the map, with all transitions dropped from the |
| 6380 // instance descriptors. | 6380 // instance descriptors. |
| 6381 static Handle<Map> Copy(Handle<Map> map); | 6381 static Handle<Map> Copy(Handle<Map> map); |
| 6382 static Handle<Map> Create(Handle<JSFunction> constructor, | 6382 static Handle<Map> Create(Isolate* isolate, int inobject_properties); |
| 6383 int extra_inobject_properties); | |
| 6384 | 6383 |
| 6385 // Returns the next free property index (only valid for FAST MODE). | 6384 // Returns the next free property index (only valid for FAST MODE). |
| 6386 int NextFreePropertyIndex(); | 6385 int NextFreePropertyIndex(); |
| 6387 | 6386 |
| 6388 // Returns the number of properties described in instance_descriptors | 6387 // Returns the number of properties described in instance_descriptors |
| 6389 // filtering out properties with the specified attributes. | 6388 // filtering out properties with the specified attributes. |
| 6390 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, | 6389 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, |
| 6391 PropertyAttributes filter = NONE); | 6390 PropertyAttributes filter = NONE); |
| 6392 | 6391 |
| 6393 // Returns the number of slots allocated for the initial properties | 6392 // Returns the number of slots allocated for the initial properties |
| (...skipping 4741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11135 } else { | 11134 } else { |
| 11136 value &= ~(1 << bit_position); | 11135 value &= ~(1 << bit_position); |
| 11137 } | 11136 } |
| 11138 return value; | 11137 return value; |
| 11139 } | 11138 } |
| 11140 }; | 11139 }; |
| 11141 | 11140 |
| 11142 } } // namespace v8::internal | 11141 } } // namespace v8::internal |
| 11143 | 11142 |
| 11144 #endif // V8_OBJECTS_H_ | 11143 #endif // V8_OBJECTS_H_ |
| OLD | NEW |