From f54484aff408256feaf66c4157ff2746dba5d6ab Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Thu, 3 May 2012 14:09:26 +0000 Subject: [PATCH] Fix assert in function sorter. Review URL: https://chromiumcodereview.appspot.com/10364002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11497 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects-inl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/objects-inl.h b/src/objects-inl.h index 793e017..96ad792 100644 --- a/src/objects-inl.h +++ b/src/objects-inl.h @@ -3082,6 +3082,7 @@ void Code::set_allow_osr_at_loop_nesting_level(int level) { int Code::profiler_ticks() { + if (kind() == OPTIMIZED_FUNCTION) return 0; ASSERT_EQ(FUNCTION, kind()); return READ_BYTE_FIELD(this, kProfilerTicksOffset); } -- 2.7.4