| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_MAP_RECONFIGURER_H_ | 5 #ifndef V8_MAP_RECONFIGURER_H_ |
| 6 #define V8_MAP_RECONFIGURER_H_ | 6 #define V8_MAP_RECONFIGURER_H_ |
| 7 | 7 |
| 8 #include "src/elements-kind.h" | 8 #include "src/elements-kind.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/handles.h" | 10 #include "src/handles.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // - If |target_map| == |split_map|, |target_map| is in the expected state. | 101 // - If |target_map| == |split_map|, |target_map| is in the expected state. |
| 102 // Return it. | 102 // Return it. |
| 103 // - Otherwise, invalidate the outdated transition target from |target_map|, | 103 // - Otherwise, invalidate the outdated transition target from |target_map|, |
| 104 // and replace its transition tree with a new branch for the updated | 104 // and replace its transition tree with a new branch for the updated |
| 105 // descriptors. | 105 // descriptors. |
| 106 State ConstructNewMap(); | 106 State ConstructNewMap(); |
| 107 | 107 |
| 108 // When a requested reconfiguration can not be done the result is a copy | 108 // When a requested reconfiguration can not be done the result is a copy |
| 109 // of |old_map_| where every field has |Tagged| representation and |Any| | 109 // of |old_map_| where every field has |Tagged| representation and |Any| |
| 110 // field type. This map is disconnected from the transition tree. | 110 // field type. This map is disconnected from the transition tree. |
| 111 State CopyGeneralizeAllRepresentations(const char* reason); | 111 State CopyGeneralizeAllFields(const char* reason); |
| 112 | 112 |
| 113 // Returns name of a |descriptor| property. | 113 // Returns name of a |descriptor| property. |
| 114 inline Name* GetKey(int descriptor) const; | 114 inline Name* GetKey(int descriptor) const; |
| 115 | 115 |
| 116 // Returns property details of a |descriptor| in "updated" |old_descrtiptors_| | 116 // Returns property details of a |descriptor| in "updated" |old_descrtiptors_| |
| 117 // array. | 117 // array. |
| 118 inline PropertyDetails GetDetails(int descriptor) const; | 118 inline PropertyDetails GetDetails(int descriptor) const; |
| 119 | 119 |
| 120 // Returns value of a |descriptor| with kDescriptor location in "updated" | 120 // Returns value of a |descriptor| with kDescriptor location in "updated" |
| 121 // |old_descrtiptors_| array. | 121 // |old_descrtiptors_| array. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 Handle<FieldType> new_field_type_; | 164 Handle<FieldType> new_field_type_; |
| 165 | 165 |
| 166 // Data specific to kDescriptor location. | 166 // Data specific to kDescriptor location. |
| 167 Handle<Object> new_value_; | 167 Handle<Object> new_value_; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace internal | 170 } // namespace internal |
| 171 } // namespace v8 | 171 } // namespace v8 |
| 172 | 172 |
| 173 #endif // V8_MAP_RECONFIGURER_H_ | 173 #endif // V8_MAP_RECONFIGURER_H_ |
| OLD | NEW |