Hi all!

I am new to V8 project. I am trying to work on crbug.com/v8/6005 (Migrate 
v8natives.js). By referencing commit history and the style of the codes and 
lots help from cs.chromium.org/chromium/src/v8/, I at least figured out how 
to migrate the constants (CL accepted). However, migrating functions is a 
lot harder for me.

Things I feel confused about:

   - In builtins/builtins-object.cc, functions wrapped by BUILTIN() 
   sometimes return Handle<Object>, sometimes Handle<JSReceiver>.
   - In several commits where JS functions are moved to C++, sometimes 
   runtime/runtime.h, runtime/runtime-{type}.cc and debug/debug-evaluate.cc 
   need to be modified as well, but not always.
   - How to decide whether to implement the function as C++ builtin or TF 
   builtin?

It will be great someone can guide me through this. Is there existing 
documentation on how V8 codes are organized, how to use certain C++ 
functions, https://tc39.github.io/ecma262/ and so on?

Thanks in advance.

Regards,
Rong Jie

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to