Revision: 24523
Author:   [email protected]
Date:     Fri Oct 10 10:51:34 2014 UTC
Log:      Reset code age when serializing code objects.

[email protected]

Review URL: https://codereview.chromium.org/642283002
https://code.google.com/p/v8/source/detail?r=24523

Modified:
 /branches/bleeding_edge/src/objects.cc
 /branches/bleeding_edge/src/objects.h
 /branches/bleeding_edge/src/serialize.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Wed Oct  1 13:14:14 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Fri Oct 10 10:51:34 2014 UTC
@@ -10461,6 +10461,12 @@
   }
   return age;
 }
+
+
+void Code::MakeYoung() {
+  byte* sequence = FindCodeAgeSequence();
+  if (sequence != NULL) MakeCodeAgeSequenceYoung(sequence, GetIsolate());
+}


 void Code::MakeOlder(MarkingParity current_parity) {
=======================================
--- /branches/bleeding_edge/src/objects.h       Wed Oct  8 14:55:03 2014 UTC
+++ /branches/bleeding_edge/src/objects.h       Fri Oct 10 10:51:34 2014 UTC
@@ -5310,6 +5310,7 @@
   // 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();
=======================================
--- /branches/bleeding_edge/src/serialize.cc    Thu Oct  2 09:39:13 2014 UTC
+++ /branches/bleeding_edge/src/serialize.cc    Fri Oct 10 10:51:34 2014 UTC
@@ -1991,6 +1991,7 @@
           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;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to