Revision: 11497
Author:   [email protected]
Date:     Thu May  3 07:09:26 2012
Log:      Fix assert in function sorter.
Review URL: https://chromiumcodereview.appspot.com/10364002
http://code.google.com/p/v8/source/detail?r=11497

Modified:
 /branches/bleeding_edge/src/objects-inl.h

=======================================
--- /branches/bleeding_edge/src/objects-inl.h   Thu May  3 03:54:17 2012
+++ /branches/bleeding_edge/src/objects-inl.h   Thu May  3 07:09:26 2012
@@ -3082,6 +3082,7 @@


 int Code::profiler_ticks() {
+  if (kind() == OPTIMIZED_FUNCTION) return 0;
   ASSERT_EQ(FUNCTION, kind());
   return READ_BYTE_FIELD(this, kProfilerTicksOffset);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to