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

Unified Diff: src/compiler/access-info.h

Issue 2290233002: [turbofan] Introduce MachineRepresentation to PropertyAccessInfo. (Closed)
Patch Set: REBASE and comments. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/access-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/access-info.h
diff --git a/src/compiler/access-info.h b/src/compiler/access-info.h
index 8c49a62c5029c321708fe9ed6da8f3de6732bb9c..68ba66fb2f8739bd0ed02cfd4f53ddd08855b21c 100644
--- a/src/compiler/access-info.h
+++ b/src/compiler/access-info.h
@@ -8,6 +8,7 @@
#include <iosfwd>
#include "src/field-index.h"
+#include "src/machine-type.h"
#include "src/objects.h"
#include "src/zone-containers.h"
@@ -68,7 +69,8 @@ class PropertyAccessInfo final {
Handle<Object> constant,
MaybeHandle<JSObject> holder);
static PropertyAccessInfo DataField(
- MapList const& receiver_maps, FieldIndex field_index, Type* field_type,
+ MapList const& receiver_maps, FieldIndex field_index,
+ MachineRepresentation field_representation, Type* field_type,
MaybeHandle<JSObject> holder = MaybeHandle<JSObject>(),
MaybeHandle<Map> transition_map = MaybeHandle<Map>());
static PropertyAccessInfo AccessorConstant(MapList const& receiver_maps,
@@ -92,6 +94,9 @@ class PropertyAccessInfo final {
Handle<Object> constant() const { return constant_; }
FieldIndex field_index() const { return field_index_; }
Type* field_type() const { return field_type_; }
+ MachineRepresentation field_representation() const {
+ return field_representation_;
+ }
MapList const& receiver_maps() const { return receiver_maps_; }
private:
@@ -101,6 +106,7 @@ class PropertyAccessInfo final {
Handle<Object> constant, MapList const& receiver_maps);
PropertyAccessInfo(MaybeHandle<JSObject> holder,
MaybeHandle<Map> transition_map, FieldIndex field_index,
+ MachineRepresentation field_representation,
Type* field_type, MapList const& receiver_maps);
Kind kind_;
@@ -109,6 +115,7 @@ class PropertyAccessInfo final {
MaybeHandle<Map> transition_map_;
MaybeHandle<JSObject> holder_;
FieldIndex field_index_;
+ MachineRepresentation field_representation_;
Type* field_type_;
};
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/access-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698