Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1130)

Unified Diff: src/liveedit.cc

Issue 10837037: Age code to allow reclaiming old unexecuted functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup code Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698