| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 int old_nof_; | 150 int old_nof_; |
| 151 | 151 |
| 152 State state_ = kInitialized; | 152 State state_ = kInitialized; |
| 153 ElementsKind new_elements_kind_; | 153 ElementsKind new_elements_kind_; |
| 154 | 154 |
| 155 // If |modified_descriptor_| is not equal to -1 them the fields below form | 155 // If |modified_descriptor_| is not equal to -1 them the fields below form |
| 156 // an "update" of the |old_map_|'s descriptors. | 156 // an "update" of the |old_map_|'s descriptors. |
| 157 int modified_descriptor_ = -1; | 157 int modified_descriptor_ = -1; |
| 158 PropertyKind new_kind_ = kData; | 158 PropertyKind new_kind_ = kData; |
| 159 PropertyAttributes new_attributes_ = NONE; | 159 PropertyAttributes new_attributes_ = NONE; |
| 160 PropertyConstness new_constness_ = kMutable; |
| 160 PropertyLocation new_location_ = kField; | 161 PropertyLocation new_location_ = kField; |
| 161 Representation new_representation_ = Representation::None(); | 162 Representation new_representation_ = Representation::None(); |
| 162 | 163 |
| 163 // Data specific to kField location. | 164 // Data specific to kField location. |
| 164 Handle<FieldType> new_field_type_; | 165 Handle<FieldType> new_field_type_; |
| 165 | 166 |
| 166 // Data specific to kDescriptor location. | 167 // Data specific to kDescriptor location. |
| 167 Handle<Object> new_value_; | 168 Handle<Object> new_value_; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace internal | 171 } // namespace internal |
| 171 } // namespace v8 | 172 } // namespace v8 |
| 172 | 173 |
| 173 #endif // V8_MAP_RECONFIGURER_H_ | 174 #endif // V8_MAP_RECONFIGURER_H_ |
| OLD | NEW |