blob: 4e7a0bc225efdaa713d37f3d9ff2e8869352e91e [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: yes
9
10---
11snippet: "
12 throw 1;
13"
14frame size: 0
15parameter count: 1
16bytecode array length: 4
17bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010018 /* 30 E> */ B(StackCheck),
19 /* 34 S> */ B(LdaSmi), U8(1),
20 /* 34 E> */ B(Throw),
Ben Murdochda12d292016-06-02 14:46:10 +010021]
22constant pool: [
23]
24handlers: [
25]
26
27---
28snippet: "
29 throw 'Error';
30"
31frame size: 0
32parameter count: 1
33bytecode array length: 4
34bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010035 /* 30 E> */ B(StackCheck),
36 /* 34 S> */ B(LdaConstant), U8(0),
37 /* 34 E> */ B(Throw),
Ben Murdochda12d292016-06-02 14:46:10 +010038]
39constant pool: [
40 "Error",
41]
42handlers: [
43]
44
45---
46snippet: "
47 var a = 1; if (a) { throw 'Error'; };
48"
49frame size: 1
50parameter count: 1
51bytecode array length: 12
52bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010053 /* 30 E> */ B(StackCheck),
54 /* 42 S> */ B(LdaSmi), U8(1),
Ben Murdoch61f157c2016-09-16 13:49:30 +010055 B(Star), R(0),
Ben Murdochc5610432016-08-08 18:44:38 +010056 /* 45 S> */ B(JumpIfToBooleanFalse), U8(5),
57 /* 54 S> */ B(LdaConstant), U8(0),
58 /* 54 E> */ B(Throw),
59 B(LdaUndefined),
60 /* 72 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010061]
62constant pool: [
63 "Error",
64]
65handlers: [
66]
67