Re: [JS-internals] JS Engine Interpreter

2015-02-10 Thread Erdal Mutlu
On Tuesday, February 10, 2015 at 11:44:54 PM UTC+2, Steve Fink wrote: > On 02/10/2015 11:11 AM, Erdal Mutlu wrote: > > On Tuesday, February 10, 2015 at 6:59:20 PM UTC+2, Steve Fink wrote: > >> On 02/10/2015 01:06 AM, Erdal Mutlu wrote: > >>> Hi, > >>> > >>> I have been instrumenting the JS engine i

Re: [JS-internals] JS Engine Interpreter

2015-02-10 Thread Steve Fink
On 02/10/2015 11:11 AM, Erdal Mutlu wrote: On Tuesday, February 10, 2015 at 6:59:20 PM UTC+2, Steve Fink wrote: On 02/10/2015 01:06 AM, Erdal Mutlu wrote: Hi, I have been instrumenting the JS engine interpreter for logging memory updates on JS scripts. My current instrumentation logs every us

Re: [JS-internals] JS Engine Interpreter

2015-02-10 Thread Erdal Mutlu
On Tuesday, February 10, 2015 at 6:59:20 PM UTC+2, Steve Fink wrote: > On 02/10/2015 01:06 AM, Erdal Mutlu wrote: > > Hi, > > > > I have been instrumenting the JS engine interpreter for logging memory > > updates on JS scripts. My current instrumentation logs every use of the > > interpreter for

Re: [JS-internals] Updating JSClass of an Object?

2015-02-10 Thread obastemur
On Tuesday, February 10, 2015 at 7:41:07 PM UTC+1, Nick Fitzgerald wrote: > On Tue, Feb 10, 2015 at 9:14 AM, Jason Orendorff > wrote: > > > On Tue, Feb 10, 2015 at 10:27 AM, Jason Hill > > wrote: > > > > > 1 - Is it possible to update an object properties created on the JS land > > ? > > > What

Re: [JS-internals] Updating JSClass of an Object?

2015-02-10 Thread Nick Fitzgerald
On Tue, Feb 10, 2015 at 9:14 AM, Jason Orendorff wrote: > On Tue, Feb 10, 2015 at 10:27 AM, Jason Hill > wrote: > > > 1 - Is it possible to update an object properties created on the JS land > ? > > What I need to do is that setting private data / data slot into any > Object > > created on the J

Re: [JS-internals] ION optimizations

2015-02-10 Thread obastemur
On Tuesday, February 10, 2015 at 7:08:03 PM UTC+1, Jan de Mooij wrote: > On Tue, Feb 10, 2015 at 6:46 PM, wrote: > > > Is there any reason why ION marks the below first function to not_compile, > > while it's not a problem for the second ? > > > > 1 - function x() { var arr = []; arr[0] = 1; ...s

Re: [JS-internals] ION optimizations

2015-02-10 Thread Jan de Mooij
On Tue, Feb 10, 2015 at 6:46 PM, wrote: > Is there any reason why ION marks the below first function to not_compile, > while it's not a problem for the second ? > > 1 - function x() { var arr = []; arr[0] = 1; ...some_other_things... } > > 2 - function x() { var arr = new Array(); arr[0] = 1; ..

[JS-internals] ION optimizations

2015-02-10 Thread obastemur
Is there any reason why ION marks the below first function to not_compile, while it's not a problem for the second ? 1 - function x() { var arr = []; arr[0] = 1; ...some_other_things... } 2 - function x() { var arr = new Array(); arr[0] = 1; .. } 'array(opcode 190) is not typed?' Sam

Re: [JS-internals] Updating JSClass of an Object?

2015-02-10 Thread Terrence Cole
If you are fine with using an unstable interface, you can use js::SetObjectMetadataCallback and pin any properties you need to the pmetadata object. Note that this does disable some optimizations however, so may not be appropriate for your usage. There is certainly no way to change the class or ad

Re: [JS-internals] Updating JSClass of an Object?

2015-02-10 Thread Jason Hill
> > 1 - Is it possible to update an object properties created on the JS land ? > > What I need to do is that setting private data / data slot into any Object > > created on the JS land. > > > > It is possible to store per-object information (in a WeakMap), but it's not > possible to get a list of

Re: [JS-internals] Updating JSClass of an Object?

2015-02-10 Thread Jason Orendorff
On Tue, Feb 10, 2015 at 10:27 AM, Jason Hill wrote: > 1 - Is it possible to update an object properties created on the JS land ? > What I need to do is that setting private data / data slot into any Object > created on the JS land. > It is possible to store per-object information (in a WeakMap),

Re: [JS-internals] JS Engine Interpreter

2015-02-10 Thread Steve Fink
On 02/10/2015 01:06 AM, Erdal Mutlu wrote: Hi, I have been instrumenting the JS engine interpreter for logging memory updates on JS scripts. My current instrumentation logs every use of the interpreter for script execution which also includes browser (internal) script execution. I wanted to a

[JS-internals] Updating JSClass of an Object?

2015-02-10 Thread Jason Hill
1 - Is it possible to update an object properties created on the JS land ? What I need to do is that setting private data / data slot into any Object created on the JS land. 2 - How to catch the 'finalizer' call for an Object created on the JS land? _

[JS-internals] JS Engine Interpreter

2015-02-10 Thread Erdal Mutlu
Hi, I have been instrumenting the JS engine interpreter for logging memory updates on JS scripts. My current instrumentation logs every use of the interpreter for script execution which also includes browser (internal) script execution. I wanted to ask if there is a way to separate these intern