Commit 3b21a2fb authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Move broker from ObjectData to ObjectRef.

This is necessary to be able to share the data for read-only
objects amongst multiple broker instances.

Bug: v8:7790
Change-Id: I0da58f8a9eded06ac6e994bc540a3a1bc481d6a7
Reviewed-on: https://chromium-review.googlesource.com/1251308Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56292}
parent 2a3075a5
This diff is collapsed.
......@@ -75,7 +75,10 @@ HEAP_BROKER_OBJECT_LIST(FORWARD_DECL)
class ObjectRef {
public:
ObjectRef(JSHeapBroker* broker, Handle<Object> object);
explicit ObjectRef(ObjectData* data) : data_(data) { CHECK_NOT_NULL(data_); }
ObjectRef(JSHeapBroker* broker, ObjectData* data)
: broker_(broker), data_(data) {
CHECK_NOT_NULL(data_);
}
bool equals(const ObjectRef& other) const;
......@@ -108,6 +111,7 @@ class ObjectRef {
ObjectData* data() const;
private:
JSHeapBroker* broker_;
ObjectData* data_;
};
......
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