R=mvstanton@chromium.org
Review URL: https://codereview.chromium.org/
642283002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24523
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
+void Code::MakeYoung() {
+ byte* sequence = FindCodeAgeSequence();
+ if (sequence != NULL) MakeCodeAgeSequenceYoung(sequence, GetIsolate());
+}
+
+
void Code::MakeOlder(MarkingParity current_parity) {
byte* sequence = FindCodeAgeSequence();
if (sequence != NULL) {
// compilation stub.
static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate);
static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate);
+ void MakeYoung();
void MakeOlder(MarkingParity);
static bool IsYoungSequence(Isolate* isolate, byte* sequence);
bool IsOld();
Code* lazy = *isolate()->builtins()->CompileLazy();
SerializeBuiltin(lazy, how_to_code, where_to_point);
} else {
+ code_object->MakeYoung();
SerializeHeapObject(code_object, how_to_code, where_to_point);
}
return;