op_create_activation creates a closure.

op_tear_off_activation copies stack variables into the heap in order to persist 
the closure after the function returns.

For more information about closures, see 
http://en.wikipedia.org/wiki/Closure_(computer_science).

Geoff


On Jun 18, 2013, at 12:38 PM, Abhishek Bichhawat 
<abhishek_bichha...@yahoo.co.in> wrote:

> Hi,
> 
> We are working on a research project involving webkit. We are currently using 
> Webkit-r122160 and trying to understand the functionality of two of the 
> opcodes (op_create_activation and op_tear_off_activation), which are a part 
> of the classical interpreter. Although, the classical interpreter has been 
> phased out, we would appreciate if you could provide an insight into the 
> functionality of the two opcodes. We are interested in the low-level details 
> of the opcodes as to how they insert an object in the 
> heap/register/scopechain and delete it from there. 
> 
> Thanks and Regards,
> Abhishek
> _______________________________________________
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to