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 5453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5464 | 5464 |
5465 int NumberOfFields(); | 5465 int NumberOfFields(); |
5466 | 5466 |
5467 // TODO(ishell): candidate with JSObject::MigrateToMap(). | 5467 // TODO(ishell): candidate with JSObject::MigrateToMap(). |
5468 bool InstancesNeedRewriting(Map* target, int target_number_of_fields, | 5468 bool InstancesNeedRewriting(Map* target, int target_number_of_fields, |
5469 int target_inobject, int target_unused, | 5469 int target_inobject, int target_unused, |
5470 int* old_number_of_fields); | 5470 int* old_number_of_fields); |
5471 // TODO(ishell): moveit! | 5471 // TODO(ishell): moveit! |
5472 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); | 5472 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); |
5473 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( | 5473 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( |
5474 Handle<HeapType> type1, | 5474 Representation rep1, Handle<HeapType> type1, Representation rep2, |
5475 Handle<HeapType> type2, | 5475 Handle<HeapType> type2, Isolate* isolate); |
5476 Isolate* isolate); | |
5477 static void GeneralizeFieldType(Handle<Map> map, int modify_index, | 5476 static void GeneralizeFieldType(Handle<Map> map, int modify_index, |
5478 Representation new_representation, | 5477 Representation new_representation, |
5479 Handle<HeapType> new_field_type); | 5478 Handle<HeapType> new_field_type); |
5480 static Handle<Map> ReconfigureProperty(Handle<Map> map, int modify_index, | 5479 static Handle<Map> ReconfigureProperty(Handle<Map> map, int modify_index, |
5481 PropertyKind new_kind, | 5480 PropertyKind new_kind, |
5482 PropertyAttributes new_attributes, | 5481 PropertyAttributes new_attributes, |
5483 Representation new_representation, | 5482 Representation new_representation, |
5484 Handle<HeapType> new_field_type, | 5483 Handle<HeapType> new_field_type, |
5485 StoreMode store_mode); | 5484 StoreMode store_mode); |
5486 static Handle<Map> CopyGeneralizeAllRepresentations( | 5485 static Handle<Map> CopyGeneralizeAllRepresentations( |
(...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10561 | 10560 |
10562 Isolate* isolate_; | 10561 Isolate* isolate_; |
10563 Handle<FixedArray> keys_; | 10562 Handle<FixedArray> keys_; |
10564 Handle<OrderedHashSet> set_; | 10563 Handle<OrderedHashSet> set_; |
10565 int length_; | 10564 int length_; |
10566 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10565 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10567 }; | 10566 }; |
10568 } } // namespace v8::internal | 10567 } } // namespace v8::internal |
10569 | 10568 |
10570 #endif // V8_OBJECTS_H_ | 10569 #endif // V8_OBJECTS_H_ |
OLD | NEW |