Set optimizable to false on code object if shared function info says so.
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 28 Mar 2011 05:57:27 +0000 (05:57 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 28 Mar 2011 05:57:27 +0000 (05:57 +0000)
commit67f20c4d95bf606e2c8a370282c2fc114adcfe6f
tree5ac39ea20fe0ed3d69fe98e242b5cb036530c43a
parent7a74560fccc6886912800acff7220c0f01b2618b
Set optimizable to false on code object if shared function info says so.

Because we might throw away code when doing code flushing we need to
set the optimizable flag to false in CompileLaze if this has been set
on the shared function info. This is the only place where this can
happen, since we always exchange the code with the laze compile stub
when doing code flushing.

The comment in AbortAndDisable actually states that this is already
the case (and that comment should now be ok).

Review URL: http://codereview.chromium.org/6685044

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7378 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler.cc