Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index a87cc1363edfda8ad44fb22911c8eca820bf1879..85c0dc6ca2fce08648991d864665360618a274f0 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -5656,6 +5656,7 @@ void Heap::AddWeakObjectToCodeDependency(Handle<Object> obj, |
Handle<DependentCode> dep) { |
ASSERT(!InNewSpace(*obj)); |
ASSERT(!InNewSpace(*dep)); |
+ HandleScope scope(isolate()); |
Handle<WeakHashTable> table(WeakHashTable::cast(weak_object_to_code_table_), |
isolate()); |
table = WeakHashTable::Put(table, obj, dep); |