w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

codedump.c File Reference
#include <mruby.h>
#include <mruby/irep.h>
#include <mruby/debug.h>
#include <mruby/opcode.h>
#include <mruby/string.h>
#include <mruby/proc.h>
#include <mruby/dump.h>
Include dependency graph for codedump.c:

Go to the source code of this file.

Macros

#define CASE(insn, ops)   case insn: FETCH_ ## ops ();
 

Functions

static void print_r (mrb_state *mrb, const mrb_irep *irep, size_t n)
 
static void print_lv_a (mrb_state *mrb, const mrb_irep *irep, uint16_t a)
 
static void print_lv_ab (mrb_state *mrb, const mrb_irep *irep, uint16_t a, uint16_t b)
 
static void print_header (mrb_state *mrb, const mrb_irep *irep, uint32_t i)
 
static void codedump (mrb_state *mrb, const mrb_irep *irep)
 
static void codedump_recur (mrb_state *mrb, const mrb_irep *irep)
 
void mrb_codedump_all (mrb_state *mrb, struct RProc *proc)
 

Macro Definition Documentation

◆ CASE

#define CASE (   insn,
  ops 
)    case insn: FETCH_ ## ops ();

Definition at line 60 of file codedump.c.

Function Documentation

◆ codedump()

◆ codedump_recur()

static void codedump_recur ( mrb_state mrb,
const mrb_irep irep 
)
static

Definition at line 559 of file codedump.c.

References codedump(), i, mrb_irep::reps, and mrb_irep::rlen.

Referenced by mrb_codedump_all().

◆ mrb_codedump_all()

void mrb_codedump_all ( mrb_state mrb,
struct RProc proc 
)

Definition at line 573 of file codedump.c.

References codedump_recur().

Referenced by load_irep(), main(), and mrb_load_exec().

◆ print_header()

static void print_header ( mrb_state mrb,
const mrb_irep irep,
uint32_t  i 
)
static

Definition at line 45 of file codedump.c.

References i, line, mrb_debug_get_line(), and printf().

Referenced by codedump().

◆ print_lv_a()

static void print_lv_a ( mrb_state mrb,
const mrb_irep irep,
uint16_t  a 
)
static

Definition at line 20 of file codedump.c.

References a, mrb_irep::lv, mrb_irep::nlocals, print_r(), and printf().

Referenced by codedump().

◆ print_lv_ab()

static void print_lv_ab ( mrb_state mrb,
const mrb_irep irep,
uint16_t  a,
uint16_t  b 
)
static

Definition at line 32 of file codedump.c.

References a, b, mrb_irep::lv, mrb_irep::nlocals, print_r(), and printf().

Referenced by codedump().

◆ print_r()

static void print_r ( mrb_state mrb,
const mrb_irep irep,
size_t  n 
)
static

Definition at line 11 of file codedump.c.

References mrb_irep::lv, mrb_sym_dump(), n, mrb_irep::nlocals, and printf().

Referenced by print_lv_a(), and print_lv_ab().