Re: [webkit-dev] Functionality of create_activation and tear_off_activation

2013-06-20 Thread Abhishek Bichhawat
Thanks Geoffrey.
I was also interested in knowing, how these opcodes work with the scopechain, 
i.e., 
how many nodes does it push into the scopechain and how does it determine how 
many nodes to skip in get_scoped_var with multiple nested functions.

Thanks and Regards,
Abhishek



 From: Geoffrey Garen gga...@apple.com
To: Abhishek Bichhawat abhishek_bichha...@yahoo.co.in 
Cc: webkit-dev@lists.webkit.org webkit-dev@lists.webkit.org 
Sent: Wednesday, 19 June 2013 6:53 PM
Subject: Re: [webkit-dev] Functionality of create_activation and 
tear_off_activation
 


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


Re: [webkit-dev] Functionality of create_activation and tear_off_activation

2013-06-19 Thread Geoffrey Garen
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


[webkit-dev] Functionality of create_activation and tear_off_activation

2013-06-18 Thread Abhishek Bichhawat
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