Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame^] | 1 | # |
2 | # Autogenerated by generate-bytecode-expectations. | ||||
3 | # | ||||
4 | |||||
5 | --- | ||||
6 | pool type: string | ||||
7 | execute: yes | ||||
8 | wrap: yes | ||||
9 | |||||
10 | --- | ||||
11 | snippet: " | ||||
12 | throw 1; | ||||
13 | " | ||||
14 | frame size: 0 | ||||
15 | parameter count: 1 | ||||
16 | bytecode array length: 4 | ||||
17 | bytecodes: [ | ||||
18 | B(StackCheck), | ||||
19 | B(LdaSmi), U8(1), | ||||
20 | B(Throw), | ||||
21 | ] | ||||
22 | constant pool: [ | ||||
23 | ] | ||||
24 | handlers: [ | ||||
25 | ] | ||||
26 | |||||
27 | --- | ||||
28 | snippet: " | ||||
29 | throw 'Error'; | ||||
30 | " | ||||
31 | frame size: 0 | ||||
32 | parameter count: 1 | ||||
33 | bytecode array length: 4 | ||||
34 | bytecodes: [ | ||||
35 | B(StackCheck), | ||||
36 | B(LdaConstant), U8(0), | ||||
37 | B(Throw), | ||||
38 | ] | ||||
39 | constant pool: [ | ||||
40 | "Error", | ||||
41 | ] | ||||
42 | handlers: [ | ||||
43 | ] | ||||
44 | |||||
45 | --- | ||||
46 | snippet: " | ||||
47 | var a = 1; if (a) { throw 'Error'; }; | ||||
48 | " | ||||
49 | frame size: 1 | ||||
50 | parameter count: 1 | ||||
51 | bytecode array length: 12 | ||||
52 | bytecodes: [ | ||||
53 | B(StackCheck), | ||||
54 | B(LdaSmi), U8(1), | ||||
55 | B(Star), R(0), | ||||
56 | B(JumpIfToBooleanFalse), U8(5), | ||||
57 | B(LdaConstant), U8(0), | ||||
58 | B(Throw), | ||||
59 | B(LdaUndefined), | ||||
60 | B(Return), | ||||
61 | ] | ||||
62 | constant pool: [ | ||||
63 | "Error", | ||||
64 | ] | ||||
65 | handlers: [ | ||||
66 | ] | ||||
67 |