blob: b57baf8b55044f15c90f363d28baa6f681c3e281 [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 try { return 1; } catch(e) { return 2; }
13"
14frame size: 5
15parameter count: 1
16bytecode array length: 40
17bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010018 /* 30 E> */ B(StackCheck),
19 B(Mov), R(context), R(1),
20 /* 40 S> */ B(LdaSmi), U8(1),
21 /* 75 S> */ B(Return),
22 B(Star), R(3),
23 B(LdaConstant), U8(0),
24 B(Star), R(2),
25 B(Ldar), R(closure),
26 B(Star), R(4),
27 B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3),
28 B(Star), R(1),
29 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
30 B(Ldar), R(1),
31 B(PushContext), R(0),
32 /* 63 S> */ B(LdaSmi), U8(2),
33 B(PopContext), R(0),
34 /* 75 S> */ B(Return),
35 B(LdaUndefined),
36 /* 75 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010037]
38constant pool: [
39 "e",
40]
41handlers: [
42 [4, 7, 7],
43]
44
45---
46snippet: "
47 var a;
48 try { a = 1 } catch(e1) {};
49 try { a = 2 } catch(e2) { a = 3 }
50"
51frame size: 6
52parameter count: 1
53bytecode array length: 81
54bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010055 /* 30 E> */ B(StackCheck),
56 B(Mov), R(context), R(2),
57 /* 47 S> */ B(LdaSmi), U8(1),
58 /* 49 E> */ B(Star), R(0),
59 B(Jump), U8(30),
60 B(Star), R(4),
61 B(LdaConstant), U8(0),
62 B(Star), R(3),
63 B(Ldar), R(closure),
64 B(Star), R(5),
65 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
66 B(Star), R(2),
67 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
68 B(Ldar), R(2),
69 B(PushContext), R(1),
70 B(PopContext), R(1),
71 B(Mov), R(context), R(2),
72 /* 75 S> */ B(LdaSmi), U8(2),
73 /* 77 E> */ B(Star), R(0),
74 B(Jump), U8(34),
75 B(Star), R(4),
76 B(LdaConstant), U8(1),
77 B(Star), R(3),
78 B(Ldar), R(closure),
79 B(Star), R(5),
80 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
81 B(Star), R(2),
82 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
83 B(Ldar), R(2),
84 B(PushContext), R(1),
85 /* 95 S> */ B(LdaSmi), U8(3),
86 /* 97 E> */ B(Star), R(0),
87 B(PopContext), R(1),
88 B(LdaUndefined),
89 /* 103 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010090]
91constant pool: [
92 "e1",
93 "e2",
94]
95handlers: [
96 [4, 8, 10],
97 [41, 45, 47],
98]
99