[JS-internals] Approach for adapting SpiderMonkey to moving GC

2012-06-27 Thread Dave Mandelin
I still have some concerns about our approach for adapting to moving GC. From the meeting notes, I see that there are some open concerns about maintaining proper handle usage outside the JS engine (and I'm not sure how easy it's going to be inside the engine for that matter) and more worrying ev

Re: [JS-internals] how does "with" statement impact on js engine optimization?

2012-06-27 Thread Dave Mandelin
On Wednesday, June 27, 2012 4:06:03 PM UTC-7, Vyacheslav Egorov wrote: > It just seems that engine implementors agree that it's impractical to > optimize it :-) For my part, I also think it's on its way out of the language due to being a bad feature :-), so why put in the effort?

Re: [JS-internals] how does "with" statement impact on js engine optimization?

2012-06-27 Thread Vyacheslav Egorov
Allow me to disagree with "can't" part... Just wrapping some code in with () {} does not prevent JavaScript engine from using ICs inside the wrapped code. They will continue to be used. There is however another problem: V8 at least (and I suppose SM) does not have ICs for variable lookups from in