Commit f53e813e authored by Jaroslav Sevcik's avatar Jaroslav Sevcik Committed by Commit Bot

[turbofan] Forward elements kind getter to map (in the broker)

Bug: v8:7790
Change-Id: Idc19240a6c05d4c182804351c3fc9bbd2650bfc0
Reviewed-on: https://chromium-review.googlesource.com/1181127Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55223}
parent 30ff6719
...@@ -881,7 +881,6 @@ HANDLE_ACCESSOR_C(HeapObject, bool, IsSeqString) ...@@ -881,7 +881,6 @@ HANDLE_ACCESSOR_C(HeapObject, bool, IsSeqString)
HANDLE_ACCESSOR_C(HeapNumber, double, value) HANDLE_ACCESSOR_C(HeapNumber, double, value)
HANDLE_ACCESSOR_C(JSArray, ElementsKind, GetElementsKind)
HANDLE_ACCESSOR(JSArray, Object, length) HANDLE_ACCESSOR(JSArray, Object, length)
BIMODAL_ACCESSOR(JSFunction, Map, initial_map) BIMODAL_ACCESSOR(JSFunction, Map, initial_map)
...@@ -889,7 +888,6 @@ HANDLE_ACCESSOR_C(JSFunction, bool, IsConstructor) ...@@ -889,7 +888,6 @@ HANDLE_ACCESSOR_C(JSFunction, bool, IsConstructor)
HANDLE_ACCESSOR(JSFunction, JSGlobalProxy, global_proxy) HANDLE_ACCESSOR(JSFunction, JSGlobalProxy, global_proxy)
HANDLE_ACCESSOR(JSFunction, SharedFunctionInfo, shared) HANDLE_ACCESSOR(JSFunction, SharedFunctionInfo, shared)
HANDLE_ACCESSOR_C(JSObject, ElementsKind, GetElementsKind)
HANDLE_ACCESSOR(JSObject, FixedArrayBase, elements) HANDLE_ACCESSOR(JSObject, FixedArrayBase, elements)
HANDLE_ACCESSOR(JSRegExp, Object, data) HANDLE_ACCESSOR(JSRegExp, Object, data)
...@@ -1056,6 +1054,10 @@ base::Optional<JSObjectRef> AllocationSiteRef::boilerplate() const { ...@@ -1056,6 +1054,10 @@ base::Optional<JSObjectRef> AllocationSiteRef::boilerplate() const {
} }
} }
ElementsKind JSObjectRef::GetElementsKind() const {
return map().elements_kind();
}
Handle<Object> ObjectRef::object() const { return data_->object; } Handle<Object> ObjectRef::object() const { return data_->object; }
JSHeapBroker* ObjectRef::broker() const { return data_->broker; } JSHeapBroker* ObjectRef::broker() const { return data_->broker; }
......
...@@ -352,7 +352,6 @@ class JSArrayRef : public JSObjectRef { ...@@ -352,7 +352,6 @@ class JSArrayRef : public JSObjectRef {
public: public:
using JSObjectRef::JSObjectRef; using JSObjectRef::JSObjectRef;
ElementsKind GetElementsKind() const;
ObjectRef length() const; ObjectRef length() const;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment