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 6267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6278 Handle<Name> key); | 6278 Handle<Name> key); |
6279 | 6279 |
6280 Map* FindRootMap(); | 6280 Map* FindRootMap(); |
6281 Map* FindFieldOwner(int descriptor); | 6281 Map* FindFieldOwner(int descriptor); |
6282 | 6282 |
6283 inline int GetInObjectPropertyOffset(int index); | 6283 inline int GetInObjectPropertyOffset(int index); |
6284 | 6284 |
6285 int NumberOfFields(); | 6285 int NumberOfFields(); |
6286 | 6286 |
6287 // TODO(ishell): candidate with JSObject::MigrateToMap(). | 6287 // TODO(ishell): candidate with JSObject::MigrateToMap(). |
6288 bool InstancesNeedRewriting(Map* target, | 6288 bool InstancesNeedRewriting(Map* target, int target_number_of_fields, |
6289 int target_number_of_fields, | 6289 int target_inobject, int target_unused, |
6290 int target_inobject, | 6290 int* old_number_of_fields); |
6291 int target_unused); | |
6292 // TODO(ishell): moveit! | 6291 // TODO(ishell): moveit! |
6293 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); | 6292 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); |
6294 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( | 6293 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( |
6295 Handle<HeapType> type1, | 6294 Handle<HeapType> type1, |
6296 Handle<HeapType> type2, | 6295 Handle<HeapType> type2, |
6297 Isolate* isolate); | 6296 Isolate* isolate); |
6298 static void GeneralizeFieldType(Handle<Map> map, | 6297 static void GeneralizeFieldType(Handle<Map> map, |
6299 int modify_index, | 6298 int modify_index, |
6300 Handle<HeapType> new_field_type); | 6299 Handle<HeapType> new_field_type); |
6301 static Handle<Map> GeneralizeRepresentation( | 6300 static Handle<Map> GeneralizeRepresentation( |
(...skipping 4897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11199 } else { | 11198 } else { |
11200 value &= ~(1 << bit_position); | 11199 value &= ~(1 << bit_position); |
11201 } | 11200 } |
11202 return value; | 11201 return value; |
11203 } | 11202 } |
11204 }; | 11203 }; |
11205 | 11204 |
11206 } } // namespace v8::internal | 11205 } } // namespace v8::internal |
11207 | 11206 |
11208 #endif // V8_OBJECTS_H_ | 11207 #endif // V8_OBJECTS_H_ |
OLD | NEW |