Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index 2a3aafc1f1daa355d817f3d0031315844a4d748f..76e81c017bb5c1c0294b03b141476cfe8c862d5b 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -1270,6 +1270,8 @@ static Handle<Code> PatchPositionsInCode( |
Handle<Code> code, |
Handle<JSArray> position_change_array) { |
+ code->MakeYoung(); |
Michael Starzinger
2012/09/21 09:43:19
Why do we make the code young here?
danno
2012/10/25 10:07:23
Done.
|
+ |
RelocInfoBuffer buffer_writer(code->relocation_size(), |
code->instruction_start()); |
@@ -1287,7 +1289,9 @@ static Handle<Code> PatchPositionsInCode( |
continue; |
} |
} |
- buffer_writer.Write(it.rinfo()); |
+ if (RelocInfo::IsRealRelocMode(rinfo->rmode())) { |
+ buffer_writer.Write(it.rinfo()); |
+ } |
} |
} |