Skip to content

Instantly share code, notes, and snippets.

@arnsholt
Created November 11, 2014 18:06
Show Gist options
  • Save arnsholt/b9fba5e3c92d402bf57f to your computer and use it in GitHub Desktop.
Save arnsholt/b9fba5e3c92d402bf57f to your computer and use it in GitHub Desktop.
QAST and bytecode dump
- QAST::CompUnit
- QAST::Block
- QAST::Stmts
- QAST::Var(local __args__ :decl(param))
- QAST::Stmts
- QAST::Stmts
- QAST::Op(say)
- QAST::Var(lexical x :decl())
MoarVM dump of binary compilation unit:
Frame_0 :
cuuid : cuid_1_1415729134.86606
name :
Locals :
0: loc_0_obj
1: loc_1_obj
2: loc_2_str
Instructions :
00000 checkarity 0, -1
00001 param_sp loc_0_obj, 0
00002 paramnamesused
00003 getlex_no loc_1_obj, 'x'
00004 decont loc_1_obj, loc_1_obj
00005 smrt_strify loc_2_str, loc_1_obj
00006 say loc_2_str
00007 return_s loc_2_str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment