Big Rewrite
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
=== after regify ===
|
||||
[
|
||||
RegFn {
|
||||
name: "test",
|
||||
arg_count: 0,
|
||||
var_count: 2,
|
||||
value_names: [
|
||||
file_atom[2],
|
||||
file_atom[3],
|
||||
],
|
||||
captures: [],
|
||||
cpool: [
|
||||
FnById(
|
||||
2,
|
||||
),
|
||||
FnById(
|
||||
3,
|
||||
),
|
||||
],
|
||||
code: [
|
||||
[2] = Fclosure8 Const(0) [],
|
||||
[] = PutLoc0 None [2],
|
||||
[] = SetLocUninitialized Loc(1) [],
|
||||
[3] = GetLoc0 None [],
|
||||
[4] = GetField Atom(atom("prototype")) [3],
|
||||
[5] = Fclosure8 Const(1) [],
|
||||
[] = PutField Atom(file_atom[5]) [5, 4],
|
||||
[6] = GetLoc0 None [],
|
||||
[7, 8] = Dup None [6],
|
||||
[9] = CallConstructor Npop(0) [8, 7],
|
||||
[] = PutLoc1 None [9],
|
||||
[] = ReturnUndef None [],
|
||||
],
|
||||
next_val: 10,
|
||||
},
|
||||
RegFn {
|
||||
name: "Counter",
|
||||
arg_count: 0,
|
||||
var_count: 1,
|
||||
value_names: [
|
||||
atom("this"),
|
||||
],
|
||||
captures: [],
|
||||
cpool: [],
|
||||
code: [
|
||||
[1] = PushThis None [],
|
||||
[] = PutLoc0 None [1],
|
||||
[2] = GetLoc0 None [],
|
||||
[3] = Push1 None [],
|
||||
[] = PutField Atom(file_atom[4]) [3, 2],
|
||||
[] = ReturnUndef None [],
|
||||
],
|
||||
next_val: 4,
|
||||
},
|
||||
RegFn {
|
||||
name: "<null>",
|
||||
arg_count: 0,
|
||||
var_count: 0,
|
||||
value_names: [],
|
||||
captures: [],
|
||||
cpool: [],
|
||||
code: [
|
||||
[] = ReturnUndef None [],
|
||||
],
|
||||
next_val: 0,
|
||||
},
|
||||
]
|
||||
[
|
||||
String(
|
||||
"../test.js",
|
||||
),
|
||||
String(
|
||||
"test",
|
||||
),
|
||||
String(
|
||||
"Counter",
|
||||
),
|
||||
String(
|
||||
"c",
|
||||
),
|
||||
String(
|
||||
"x",
|
||||
),
|
||||
String(
|
||||
"m1",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user