Index: src/liveedit.cc |
=================================================================== |
--- src/liveedit.cc (revision 7102) |
+++ src/liveedit.cc (working copy) |
@@ -903,7 +903,7 @@ |
// Now iterate over all pointers of all objects, including code_target |
// implicit pointers. |
HeapIterator iterator; |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
obj->Iterate(&visitor); |
} |
@@ -987,6 +987,8 @@ |
Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); |
+ Heap::EnsureHeapIsIterable(); |
+ |
if (IsJSFunctionCode(shared_info->code())) { |
ReplaceCodeObject(shared_info->code(), |
*(compile_info_wrapper.GetFunctionCode())); |
@@ -1215,6 +1217,8 @@ |
TranslatePosition(info->function_token_position(), |
position_change_array)); |
+ Heap::EnsureHeapIsIterable(); |
+ |
if (IsJSFunctionCode(info->code())) { |
// Patch relocation info section of the code. |
Handle<Code> patched_code = PatchPositionsInCode(Handle<Code>(info->code()), |