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 6126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6137 PropertyAttributes attributes, | 6137 PropertyAttributes attributes, |
6138 StoreFromKeyed store_mode); | 6138 StoreFromKeyed store_mode); |
6139 static Handle<Map> TransitionToAccessorProperty( | 6139 static Handle<Map> TransitionToAccessorProperty( |
6140 Handle<Map> map, Handle<Name> name, AccessorComponent component, | 6140 Handle<Map> map, Handle<Name> name, AccessorComponent component, |
6141 Handle<Object> accessor, PropertyAttributes attributes); | 6141 Handle<Object> accessor, PropertyAttributes attributes); |
6142 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor, | 6142 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor, |
6143 PropertyAttributes attributes); | 6143 PropertyAttributes attributes); |
6144 | 6144 |
6145 inline void AppendDescriptor(Descriptor* desc); | 6145 inline void AppendDescriptor(Descriptor* desc); |
6146 | 6146 |
| 6147 // Returns a copy of the map, prepared for inserting into the transition |
| 6148 // tree (if the |map| owns descriptors then the new one will share |
| 6149 // descriptors with |map|). |
| 6150 static Handle<Map> CopyForTransition(Handle<Map> map, const char* reason); |
| 6151 |
6147 // Returns a copy of the map, with all transitions dropped from the | 6152 // Returns a copy of the map, with all transitions dropped from the |
6148 // instance descriptors. | 6153 // instance descriptors. |
6149 static Handle<Map> Copy(Handle<Map> map, const char* reason); | 6154 static Handle<Map> Copy(Handle<Map> map, const char* reason); |
6150 static Handle<Map> Create(Isolate* isolate, int inobject_properties); | 6155 static Handle<Map> Create(Isolate* isolate, int inobject_properties); |
6151 | 6156 |
6152 // Returns the next free property index (only valid for FAST MODE). | 6157 // Returns the next free property index (only valid for FAST MODE). |
6153 int NextFreePropertyIndex(); | 6158 int NextFreePropertyIndex(); |
6154 | 6159 |
6155 // Returns the number of properties described in instance_descriptors | 6160 // Returns the number of properties described in instance_descriptors |
6156 // filtering out properties with the specified attributes. | 6161 // filtering out properties with the specified attributes. |
(...skipping 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10934 } else { | 10939 } else { |
10935 value &= ~(1 << bit_position); | 10940 value &= ~(1 << bit_position); |
10936 } | 10941 } |
10937 return value; | 10942 return value; |
10938 } | 10943 } |
10939 }; | 10944 }; |
10940 | 10945 |
10941 } } // namespace v8::internal | 10946 } } // namespace v8::internal |
10942 | 10947 |
10943 #endif // V8_OBJECTS_H_ | 10948 #endif // V8_OBJECTS_H_ |
OLD | NEW |