[webkit-dev] Functionality of create_activation and tear_off_activation

Geoffrey Garen ggaren at apple.com
Wed Jun 19 09:53:20 PDT 2013


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_bichhawat at 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 at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130619/d5b55e91/attachment.html>


More information about the webkit-dev mailing list