News for hackers. Stuff that matters.
Re:Bringing ChakraCore to Linux and OS X by jdc0589 on Wednesday July 27, 2016 @03:09PM (#12175670)
Huh, I'm a little surprised that the try/catch de-optimization is still a thing. I watched a v8 optimizing compiler talk maybe ~4 years ago when this was discussed.

Wasn't the workaround to do nothing in the try/catch body aside from calling a named function defined outside the function scope where the try/catch was defined?

Re:Bringing ChakraCore to Linux and OS X by pcwalton on Wednesday July 27, 2016 @03:31PM (#12175829)
> Huh, I'm a little surprised that the try/catch de-optimization is still a thing.

It's fixed in Turbofan, but that's not shipping yet.

Re:Bringing ChakraCore to Linux and OS X by bmeurer on Thursday July 28, 2016 @04:57AM (#12179142)
TurboFan is shipping for functions with try/catch or try/finally.
Re:Bringing ChakraCore to Linux and OS X by Klathmon on Wednesday July 27, 2016 @03:17PM (#12175741)
Yeah, you can basically turn try/catch into something that looks like the promise constructor and pass in a "try" function and a "catch" function, and then everything is optimized well (for the most part, this can still prevent some fancy optimizations).