You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we compile the code snip above into bytecode and then bump it, in the bump info we cannot find "hello world" literal. I propose to keep this info by comment, think of how javap does
Rakudo doesn't code-gen a string literal in Perl 6 as a MoarVM string literal, but rather as wval fetching a boxed Str object holding that string literal. The bytecode dump does dump string literals (take a look at any findmeth or const_s instruction). Note that if you were to use the Rakudo JVM backend and look at the generated bytecode, you'd not see the literal in the generated code for that Perl 6 program either, for the same reason.
Objects are held in a serialized blob. We can't deserialize it without having its dependencies available (to provide the required metadata to know how to deserialize a Str), but the --dump option is intended to work only on a single bytecode file without running anything in it.
One useful thing we could provide is a way to ask the debug server for the bytecode once the program is running, and when much more information is available.
If we compile the code snip above into bytecode and then bump it, in the bump info we cannot find
"hello world"
literal. I propose to keep this info by comment, think of howjavap
doesThe text was updated successfully, but these errors were encountered: