On Thu, Feb 17, 2011 at 2:22 PM, Lasse R.H. Nielsen <[email protected]>wrote:
> I tried that, but the only code I found that looked like it was disabling > optimization was setting a bit on the Code object. At this point, the Code > object of the function wasn't a function code object (as we assert it should > be), but the lazy compilation stub. > If there is another way to make an uncompiled function unoptimizable, that > should work fine. > > There's also a bit in the SharedFunctionInfo (optimization_disabled()/set_optimization_disabled(true)). From a quick grep it looks like we set it when we disable optimization but we don't seem to use it. It seems like we could set that bit here (at the failed inlining attempt) and check it in JSFunction::IsInlineable. -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
