Index: src/heap/objects-visiting.cc |
diff --git a/src/heap/objects-visiting.cc b/src/heap/objects-visiting.cc |
index 4adf2a5c85f1d66e65acedee31c804fb4462af3d..e3f7da280e5d0ba46fa6df8fe71a72972c119be8 100644 |
--- a/src/heap/objects-visiting.cc |
+++ b/src/heap/objects-visiting.cc |
@@ -253,7 +253,7 @@ static void ClearWeakList(Heap* heap, Object* list) { |
template <> |
struct WeakListVisitor<JSFunction> { |
static void SetWeakNext(JSFunction* function, Object* next) { |
- function->set_next_function_link(next); |
+ function->set_next_function_link(next, UPDATE_WEAK_WRITE_BARRIER); |
} |
static Object* WeakNext(JSFunction* function) { |
@@ -271,7 +271,7 @@ struct WeakListVisitor<JSFunction> { |
template <> |
struct WeakListVisitor<Code> { |
static void SetWeakNext(Code* code, Object* next) { |
- code->set_next_code_link(next); |
+ code->set_next_code_link(next, UPDATE_WEAK_WRITE_BARRIER); |
} |
static Object* WeakNext(Code* code) { return code->next_code_link(); } |
@@ -342,7 +342,7 @@ struct WeakListVisitor<Context> { |
template <> |
struct WeakListVisitor<AllocationSite> { |
static void SetWeakNext(AllocationSite* obj, Object* next) { |
- obj->set_weak_next(next); |
+ obj->set_weak_next(next, UPDATE_WEAK_WRITE_BARRIER); |
} |
static Object* WeakNext(AllocationSite* obj) { return obj->weak_next(); } |