From: erik.corry@gmail.com Date: Thu, 3 May 2012 14:09:26 +0000 (+0000) Subject: Fix assert in function sorter. X-Git-Tag: upstream/4.7.83~16758 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f54484aff408256feaf66c4157ff2746dba5d6ab;p=platform%2Fupstream%2Fv8.git 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 --- 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); }