Hi Justin,

to see builtins disassembly, either:

- run mksnapshot as `out/release/mksnapshot --print-builtin-code
--code-comments` (and build with `v8_enable_disassembler = true
v8_enable_object_print = true` gn args), or:
- look at the `out/release/gen/embedded.S` file, this is what we finally
compile into v8.

r13 is the kRootRegister, which points (roughly) at the current Isolate and is
initialized by JSEntry
<https://source.chromium.org/chromium/chromium/src/+/main:v8/src/builtins/x64/builtins-x64.cc;l=402;drc=31d99ff4aa0cc0b75063325ff243e911516a5a6a>.
We use it to efficiently access isolate-specific data
<https://source.chromium.org/chromium/chromium/src/+/main:v8/src/execution/isolate-data.h;l=79;drc=31d99ff4aa0cc0b75063325ff243e911516a5a6a>
.

On Tue, Apr 18, 2023 at 9:16 PM Justin Ferguson <[email protected]>
wrote:

> Hello,
>
> Is there an easy way to see the assembly routines generated by the
> build process that ends up in embedded.cc? I'm trying to understand a
> given function (LoadSuperIC), but the assembly in a debugger looks so
> incredibly different than the function defined in accessor-assembly.cc
> that I'm not positive I'm even looking at the same function. This is
> compounded with what appears to be non-standard ABI calling
> conventions or at least there are accesses to registers that are never
> written to before reading from and which are not part of the
> parameters (e.g. r13).
>
> So it would be beneficial to my understanding to see the actual
> assembly routine, but I'm not entirely positive where to start. Any
> guidance would be appreciated.
>
> Best Regards,
>
> Justin N. Ferguson
>
> --
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-dev/CADCX%2B3VQ6M3T7u2vxc2voU%2BRrjvfpsWJqRDwDCQ8Qb4_aOSZyQ%40mail.gmail.com
> .
>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAH3p7oOd43Ca1n31c%3DVPVTS3DR_MTXb1tVk5my_bTZP7ZY3Ysg%40mail.gmail.com.

Reply via email to