• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: yes
9
10---
11snippet: "
12  return \"This is a string\";
13"
14frame size: 0
15parameter count: 1
16bytecode array length: 4
17bytecodes: [
18  /*   30 E> */ B(StackCheck),
19  /*   34 S> */ B(LdaConstant), U8(0),
20  /*   61 S> */ B(Return),
21]
22constant pool: [
23  "This is a string",
24]
25handlers: [
26]
27
28---
29snippet: "
30  var a = \"First string\"; return \"Second string\";
31"
32frame size: 1
33parameter count: 1
34bytecode array length: 8
35bytecodes: [
36  /*   30 E> */ B(StackCheck),
37  /*   42 S> */ B(LdaConstant), U8(0),
38                B(Star), R(0),
39  /*   58 S> */ B(LdaConstant), U8(1),
40  /*   82 S> */ B(Return),
41]
42constant pool: [
43  "First string",
44  "Second string",
45]
46handlers: [
47]
48
49---
50snippet: "
51  var a = \"Same string\"; return \"Same string\";
52"
53frame size: 1
54parameter count: 1
55bytecode array length: 8
56bytecodes: [
57  /*   30 E> */ B(StackCheck),
58  /*   42 S> */ B(LdaConstant), U8(0),
59                B(Star), R(0),
60  /*   57 S> */ B(LdaConstant), U8(0),
61  /*   79 S> */ B(Return),
62]
63constant pool: [
64  "Same string",
65]
66handlers: [
67]
68
69