Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Malek Musleh
I'll focus on using the built in v8 simulator. I'm primarily interested in the instruction trace of the runtime when handling an IC miss. Can you specify how I can see the arm dissembly produced by the arm simulator? You said the arm simulator gets built automatically when not running on an arm

Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Rodolph Perfetta
Your instrumentation function will likely crash wherever you call it from. The issue is that you cannot thrash lr at random as it likely contains the return address of your function. Once you fixed your magic instruction behaviour, the simplest way to add an instruction in the emitted code is to

[v8-users] Simple development queries

2015-02-27 Thread Deepak Subramanian
Query 1: The v8natives.js seem to have a references to various functions created by the macros in runtime.* and these are referenced by a %(FUNCTIONName) kind of call. Is this a correct understanding ? And what do the capital functions in the same file mean. Query 2: I am looking for the best

Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Rodolph Perfetta
If you are using release d8 then you need to add the disassembler to get the trace. make arm.release disassembler=on On 27 February 2015 at 16:43, Malek Musleh malek.mus...@gmail.com wrote: I'll focus on using the built in v8 simulator. I'm primarily interested in the instruction trace of the

[v8-users] Intent to Implement: ES6 Reflect.apply / Reflect.construct

2015-02-27 Thread Caitlin Potter
*Contact emails* caitpotte...@gmail.com, *Spec* Reflect.apply() https://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-reflect.apply https://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-reflect.apply Reflect.construct()

Re: [v8-users] Huge libv8_base.a (over 250Mb) when building for x64.release

2015-02-27 Thread Jean-Philippe Déry
I think the link to the stack overflow post I posted was misguiding, as it's not actually my code and I was actually referring to http://stackoverflow.com/questions/24279237/android-ndk-linking-v8-static-library-cannot-find-symbols-but-they-are-there?answertab=active#tab-top (the patch

Re: [v8-users] Re: Simple development queries

2015-02-27 Thread Jakob Kummerow
On Fri, Feb 27, 2015 at 6:56 PM, Deepak Subramanian subudee...@gmail.com wrote: I am relatively new to v8. Please note, I would like this to run in un-modified d8 while modifying v8 only. Thanks. On Friday, February 27, 2015 at 6:52:18 PM UTC+1, Deepak Subramanian wrote: Query 1: The

[v8-users] Re: Simple development queries

2015-02-27 Thread Deepak Subramanian
I am relatively new to v8. Please note, I would like this to run in un-modified d8 while modifying v8 only. Thanks. On Friday, February 27, 2015 at 6:52:18 PM UTC+1, Deepak Subramanian wrote: Query 1: The v8natives.js seem to have a references to various functions created by the macros in

Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Malek Musleh
Yes, that sounds correct. It seems that I should be 1) instrumenting the generated code, or at least have 2) the magic instruction be generated along with the rest of the generated code. I tried to move up the call one level to CallIC::handleMiss in v8/src/ic/ic.cc, but that causes a seg fault

Re: [v8-users] Intent to Implement: ES6 Reflect.apply / Reflect.construct

2015-02-27 Thread 'Andreas Rossberg' via v8-users
Sounds good to me. On 27 February 2015 at 15:56, Caitlin Potter caitpotte...@gmail.com wrote: *Contact emails* caitpotte...@gmail.com, *Spec* Reflect.apply() https://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-reflect.apply

Re: [v8-users] Intent to Implement: ES6 Reflect.apply / Reflect.construct

2015-02-27 Thread Dmitry Lomov
SGTMx2 On Fri, Feb 27, 2015 at 5:12 PM, 'Andreas Rossberg' via v8-users v8-users@googlegroups.com wrote: Sounds good to me. On 27 February 2015 at 15:56, Caitlin Potter caitpotte...@gmail.com wrote: *Contact emails* caitpotte...@gmail.com, *Spec* Reflect.apply()

Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Jakob Kummerow
On Fri, Feb 27, 2015 at 11:19 PM, Malek Musleh malek.mus...@gmail.com wrote: ok, that works for seeing the native dissambly. 1) But how do I enable use of the arm simulator? I see simulator related options (.e.g --trace_sim) but that doesn't seem to do anything in terms of simulating the

[v8-users] API changes upcoming to make writing exception safe code more easy

2015-02-27 Thread Michael Hablich
Hey v8-users, we're making big changes to the api (again). We've found that our api makes it extremely difficult to write exception safe code. *Reference issue* https://code.google.com/p/v8/issues/detail?id=3929 *Further description* Consider the following: LocalValue x = some_value; s =

Re: [v8-users] Add recognition of unused Arm opcode to prevent runtime error

2015-02-27 Thread Malek Musleh
ok, that works for seeing the native dissambly. 1) But how do I enable use of the arm simulator? I see simulator related options (.e.g --trace_sim) but that doesn't seem to do anything in terms of simulating the program execution under an arm platform. 2) Is it possible to see the assembly code