Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: src/compiler/access-info.h

Issue 2836893002: [turbofan] Merge PropertyAccessInfo for compatible field loads. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/access-info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/access-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698