Commit 9598ccd8 authored by danno@chromium.org's avatar danno@chromium.org

Remove extraneous forced rejuvenations in code aging

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/11421219

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13125 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2bb49cb1
......@@ -618,7 +618,6 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source,
if (result->ic_age() != HEAP->global_ic_age()) {
result->ResetForNewContext(HEAP->global_ic_age());
}
result->code()->MakeYoung();
}
if (result.is_null()) isolate->ReportPendingMessages();
......@@ -680,7 +679,6 @@ Handle<SharedFunctionInfo> Compiler::CompileEval(Handle<String> source,
if (result->ic_age() != HEAP->global_ic_age()) {
result->ResetForNewContext(HEAP->global_ic_age());
}
result->code()->MakeYoung();
}
return result;
......
......@@ -400,7 +400,7 @@ DEFINE_bool(flush_code, true,
"flush code that we expect not to use again (during full gc)")
DEFINE_bool(flush_code_incrementally, true,
"flush code that we expect not to use again (incrementally)")
DEFINE_bool(age_code, false,
DEFINE_bool(age_code, true,
"track un-executed functions to age code and flush only "
"old code")
DEFINE_bool(incremental_marking, true, "use incremental marking")
......
......@@ -7972,7 +7972,6 @@ void SharedFunctionInfo::InstallFromOptimizedCodeMap(JSFunction* function,
ASSERT(code != NULL);
ASSERT(function->context()->native_context() == code_map->get(index - 1));
function->ReplaceCode(code);
code->MakeYoung();
}
......@@ -8841,14 +8840,6 @@ void Code::MakeCodeAgeSequenceYoung(byte* sequence) {
}
void Code::MakeYoung() {
byte* sequence = FindCodeAgeSequence();
if (sequence != NULL) {
PatchPlatformCodeAge(sequence, kNoAge, NO_MARKING_PARITY);
}
}
void Code::MakeOlder(MarkingParity current_parity) {
byte* sequence = FindCodeAgeSequence();
if (sequence != NULL) {
......
......@@ -4573,7 +4573,6 @@ class Code: public HeapObject {
// Code aging
static void MakeCodeAgeSequenceYoung(byte* sequence);
void MakeYoung();
void MakeOlder(MarkingParity);
static bool IsYoungSequence(byte* sequence);
bool IsOld();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment