| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index f0c9154b5e9aa15cb45f00df5b5e43533b966979..17f31ff6904e32b68b00a8768a5528d99b51fba3 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -5460,6 +5460,8 @@ void Heap::AddWeakObjectToCodeDependency(Handle<Object> obj,
|
| Handle<DependentCode> dep) {
|
| ASSERT(!InNewSpace(*obj));
|
| ASSERT(!InNewSpace(*dep));
|
| + // This handle scope keeps the table handle local to this function, which
|
| + // allows us to safely skip write barriers in table update operations.
|
| HandleScope scope(isolate());
|
| Handle<WeakHashTable> table(WeakHashTable::cast(weak_object_to_code_table_),
|
| isolate());
|
|
|