CallGlobal.golden 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: no
test function name: f

---
snippet: "
  function t() { }
  function f() { return t(); }
  f();
"
15
frame size: 1
16
parameter count: 1
17
bytecode array length: 10
18
bytecodes: [
19
  /*   27 E> */ B(StackCheck),
20
  /*   32 S> */ B(LdaGlobal), U8(0), U8(0),
21
                B(Star), R(0),
22
  /*   39 E> */ B(CallUndefinedReceiver0), R(0), U8(2),
23
  /*   43 S> */ B(Return),
24 25
]
constant pool: [
26
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["t"],
27 28 29 30 31 32 33 34 35 36
]
handlers: [
]

---
snippet: "
  function t(a, b, c) { }
  function f() { return t(1, 2, 3); }
  f();
"
37
frame size: 4
38
parameter count: 1
39
bytecode array length: 24
40
bytecodes: [
41
  /*   34 E> */ B(StackCheck),
42
  /*   39 S> */ B(LdaGlobal), U8(0), U8(0),
43
                B(Star), R(0),
44
                B(LdaSmi), I8(1),
45
                B(Star), R(1),
46
                B(LdaSmi), I8(2),
47
                B(Star), R(2),
48
                B(LdaSmi), I8(3),
49
                B(Star), R(3),
50
  /*   46 E> */ B(CallUndefinedReceiver), R(0), R(1), U8(3), U8(2),
51
  /*   57 S> */ B(Return),
52 53
]
constant pool: [
54
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["t"],
55 56 57 58
]
handlers: [
]