OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_ACCESS_INFO_H_ | 5 #ifndef V8_COMPILER_ACCESS_INFO_H_ |
6 #define V8_COMPILER_ACCESS_INFO_H_ | 6 #define V8_COMPILER_ACCESS_INFO_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/field-index.h" | 10 #include "src/field-index.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 FieldIndex field_index, MachineRepresentation field_representation, | 76 FieldIndex field_index, MachineRepresentation field_representation, |
77 Type* field_type, MaybeHandle<Map> field_map = MaybeHandle<Map>(), | 77 Type* field_type, MaybeHandle<Map> field_map = MaybeHandle<Map>(), |
78 MaybeHandle<JSObject> holder = MaybeHandle<JSObject>(), | 78 MaybeHandle<JSObject> holder = MaybeHandle<JSObject>(), |
79 MaybeHandle<Map> transition_map = MaybeHandle<Map>()); | 79 MaybeHandle<Map> transition_map = MaybeHandle<Map>()); |
80 static PropertyAccessInfo AccessorConstant(MapList const& receiver_maps, | 80 static PropertyAccessInfo AccessorConstant(MapList const& receiver_maps, |
81 Handle<Object> constant, | 81 Handle<Object> constant, |
82 MaybeHandle<JSObject> holder); | 82 MaybeHandle<JSObject> holder); |
83 | 83 |
84 PropertyAccessInfo(); | 84 PropertyAccessInfo(); |
85 | 85 |
86 bool Merge(PropertyAccessInfo const* that) WARN_UNUSED_RESULT; | 86 bool Merge(PropertyAccessInfo const* that, AccessMode access_mode, |
| 87 Zone* zone) WARN_UNUSED_RESULT; |
87 | 88 |
88 bool IsNotFound() const { return kind() == kNotFound; } | 89 bool IsNotFound() const { return kind() == kNotFound; } |
89 bool IsDataConstant() const { return kind() == kDataConstant; } | 90 bool IsDataConstant() const { return kind() == kDataConstant; } |
90 bool IsDataField() const { return kind() == kDataField; } | 91 bool IsDataField() const { return kind() == kDataField; } |
91 // TODO(ishell): rename to IsDataConstant() once constant field tracking | 92 // TODO(ishell): rename to IsDataConstant() once constant field tracking |
92 // is done. | 93 // is done. |
93 bool IsDataConstantField() const { return kind() == kDataConstantField; } | 94 bool IsDataConstantField() const { return kind() == kDataConstantField; } |
94 bool IsAccessorConstant() const { return kind() == kAccessorConstant; } | 95 bool IsAccessorConstant() const { return kind() == kAccessorConstant; } |
95 | 96 |
96 bool HasTransitionMap() const { return !transition_map().is_null(); } | 97 bool HasTransitionMap() const { return !transition_map().is_null(); } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 Zone* const zone_; | 169 Zone* const zone_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(AccessInfoFactory); | 171 DISALLOW_COPY_AND_ASSIGN(AccessInfoFactory); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace compiler | 174 } // namespace compiler |
174 } // namespace internal | 175 } // namespace internal |
175 } // namespace v8 | 176 } // namespace v8 |
176 | 177 |
177 #endif // V8_COMPILER_ACCESS_INFO_H_ | 178 #endif // V8_COMPILER_ACCESS_INFO_H_ |
OLD | NEW |