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 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 way to get the stackframe (the stackframe that is getting printed when one uses console.trace) internally in v8 to make some decisions based on which function in the stackframe created the statement. This just needs to be internal.
Query 3:What is the standard practice when creating custom JS functions ? Lets say I want function.names to contain all the variables that can access the function, how to do this (or any simple example would suffice on custom JS functions pointing to custom c implementations)
Query 4:What is Zone,
ZoneList
and what is the purpose of Hydrogen.
Thanks a lot.Sorry to post so many queries. If you prefer a small chat over irc let me know the channel.Best Regards,Deepak
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks a lot. These have been most helpful.I would like to know how to disable crankshaft. (I do not want optimizations at this phase and feel full-codegen is sufficient for my needs at the moment) I just changed isolate.cc's use_crankshaft() to return false at all times. Is this the right way to do it ?
I would also like some concrete understanding of Zone. I know this is asking a lot but if you can point me to something useful, I would be very grateful.
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 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 way to get the stackframe (the stackframe that is getting printed when one uses console.trace) internally in v8 to make some decisions based on which function in the stackframe created the statement. This just needs to be internal.Query 3:What is the standard practice when creating custom JS functions ? Lets say I want function.names to contain all the variables that can access the function, how to do this (or any simple example would suffice on custom JS functions pointing to custom c implementations)Query 4:What is Zone, ZoneList and what is the purpose of Hydrogen.Thanks a lot.Sorry to post so many queries. If you prefer a small chat over irc let me know the channel.Best Regards,Deepak
[...] But I am not able to find the implementation of either value() or set_value(). Am I missing something trivial here ?
[...]
ACCESSORS_SPECIAL(JSValue ...) //instead of accessors
//Changed the builtins-x64.cc to correct the STATIC_ASSERT(JSValue::kSize == 4* kPointerSize) to STATIC_ASSERT(JSValue::kSize == 5* kPointerSize)
Now I am getting a segmentation fault (core dumped) error at harmony. The error remains the same even if the ACCESSORS_SPECIAL is changed to ACCESSORS.
1. [...] Now that it a boxed value, I have no reason to print it, right ?.
2. ACCESSORS_SPECIAL is currently the same as ACCESSORS with some print statements. Sadly none of my print statements are getting printed. I do not get any errors either and everything is working as normal ! So I am not sure what is wrong. Do my actions have any effect ? Why is any printf added here not getting printed ?[...]
1. I meant now that it a boxed value, I have no reason to add more statements in the GC, right ?. [Atleast from my understanding of the GC]
2. Cool. Let me make my query simple then. Everytime, the JSValue's value is accessed on the c++ part, I want to print "value was accessed". Everytime the set_value() is accessed, I want to print "value was set". Is this possible ?
Thanks again. [Could it be possible to take this on an IRC chat or something so I don't spam this forum ?]