Looks like I have just wandered myself far off into some pretty low level C++ 
stuff that I have little to no knowledge about. Sorry but I couldn't understand 
over half of your reply (only the "stack top" function explanation part that I 
think I do understand, the rest is some kind of mystery). A lot of naive 
questions pop up in my head:

_ Where should I insert that code snippet? Why the 42 check? Is 42 some kind of 
magic number?
_ Why pass x to printST() while it's main purpose is just simply print out 
stack length that needs no argument? If x is necessary then what is the value 
of x should I pass? Where should I call the new printST(x)?
_ What is self-optimizing JS code, isn't V8 responsible for optimization 
process of JS run-time? Should I do self-optimizing a lot?
_ Where is raw_frame located in C++ source files? How can an exit frame 
generated where I couldn't see any line of code I wrote that call a Node.js 
native C++ addon?
_ Is the call stack behavior different and unpredictable in live-optimized and 
interpreted languages like JS compare to pre-optimized and then compiled 
languages like C? If an exit frame wipe out entire current stack then how could 
Node.js profiling be accurate?

You are welcome to just ignore me because that is a lot of questions and I am 
in a totally different and extremely lower level than you (I have no experience 
in C/C++, although I did learn some in my university). I feel embarrassed to 
even ask the question in the first place. But still I want to learn more 
(university seem never enough)  . So any direction pointing would be much 
appreciated. Thank you for your time.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/8daae723-b347-4989-85f0-f7191276cea6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to