| 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 4886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11188 } else { | 11187 } else { |
| 11189 value &= ~(1 << bit_position); | 11188 value &= ~(1 << bit_position); |
| 11190 } | 11189 } |
| 11191 return value; | 11190 return value; |
| 11192 } | 11191 } |
| 11193 }; | 11192 }; |
| 11194 | 11193 |
| 11195 } } // namespace v8::internal | 11194 } } // namespace v8::internal |
| 11196 | 11195 |
| 11197 #endif // V8_OBJECTS_H_ | 11196 #endif // V8_OBJECTS_H_ |
| OLD | NEW |