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

---
wrap: yes

---
snippet: "
  return \"This is a string\";
"
frame size: 0
parameter count: 1
14
bytecode array length: 3
15
bytecodes: [
16
  /*   34 S> */ B(LdaConstant), U8(0),
17
  /*   60 S> */ B(Return),
18 19
]
constant pool: [
20
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["This is a string"],
21 22 23 24 25 26 27 28 29 30
]
handlers: [
]

---
snippet: "
  var a = \"First string\"; return \"Second string\";
"
frame size: 1
parameter count: 1
31
bytecode array length: 7
32
bytecodes: [
33
  /*   42 S> */ B(LdaConstant), U8(0),
34
                B(Star), R(0),
35
  /*   58 S> */ B(LdaConstant), U8(1),
36
  /*   81 S> */ B(Return),
37 38
]
constant pool: [
39 40
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["First string"],
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["Second string"],
41 42 43 44 45 46 47 48 49 50
]
handlers: [
]

---
snippet: "
  var a = \"Same string\"; return \"Same string\";
"
frame size: 1
parameter count: 1
51
bytecode array length: 7
52
bytecodes: [
53
  /*   42 S> */ B(LdaConstant), U8(0),
54
                B(Star), R(0),
55
  /*   57 S> */ B(LdaConstant), U8(0),
56
  /*   78 S> */ B(Return),
57 58
]
constant pool: [
59
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["Same string"],
60 61 62 63
]
handlers: [
]