blob: f061b704cbea9948a5f12b3c772aaf5be79bc918 [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
Ben Murdoch61f157c2016-09-16 13:49:30 +010016bytecode array length: 41
Ben Murdochda12d292016-06-02 14:46:10 +010017bytecodes: [
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),
Ben Murdoch61f157c2016-09-16 13:49:30 +010022 B(Jump), U8(32),
Ben Murdochc5610432016-08-08 18:44:38 +010023 B(Star), R(3),
24 B(LdaConstant), U8(0),
25 B(Star), R(2),
Ben Murdoch61f157c2016-09-16 13:49:30 +010026 B(Mov), R(closure), R(4),
Ben Murdochc5610432016-08-08 18:44:38 +010027 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: [
Ben Murdoch61f157c2016-09-16 13:49:30 +010042 [4, 7, 9],
Ben Murdochda12d292016-06-02 14:46:10 +010043]
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
Ben Murdoch61f157c2016-09-16 13:49:30 +010053bytecode array length: 79
Ben Murdochda12d292016-06-02 14:46:10 +010054bytecodes: [
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),
Ben Murdoch61f157c2016-09-16 13:49:30 +010058 B(Star), R(0),
59 B(Jump), U8(29),
Ben Murdochc5610432016-08-08 18:44:38 +010060 B(Star), R(4),
61 B(LdaConstant), U8(0),
62 B(Star), R(3),
Ben Murdoch61f157c2016-09-16 13:49:30 +010063 B(Mov), R(closure), R(5),
64 /* 49 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
Ben Murdochc5610432016-08-08 18:44:38 +010065 B(Star), R(2),
66 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
67 B(Ldar), R(2),
68 B(PushContext), R(1),
69 B(PopContext), R(1),
70 B(Mov), R(context), R(2),
71 /* 75 S> */ B(LdaSmi), U8(2),
Ben Murdoch61f157c2016-09-16 13:49:30 +010072 B(Star), R(0),
73 B(Jump), U8(33),
Ben Murdochc5610432016-08-08 18:44:38 +010074 B(Star), R(4),
75 B(LdaConstant), U8(1),
76 B(Star), R(3),
Ben Murdoch61f157c2016-09-16 13:49:30 +010077 B(Mov), R(closure), R(5),
78 /* 77 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
Ben Murdochc5610432016-08-08 18:44:38 +010079 B(Star), R(2),
80 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
81 B(Ldar), R(2),
82 B(PushContext), R(1),
83 /* 95 S> */ B(LdaSmi), U8(3),
Ben Murdoch61f157c2016-09-16 13:49:30 +010084 B(Star), R(0),
Ben Murdochc5610432016-08-08 18:44:38 +010085 B(PopContext), R(1),
86 B(LdaUndefined),
87 /* 103 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010088]
89constant pool: [
90 "e1",
91 "e2",
92]
93handlers: [
94 [4, 8, 10],
Ben Murdoch61f157c2016-09-16 13:49:30 +010095 [40, 44, 46],
Ben Murdochda12d292016-06-02 14:46:10 +010096]
97