2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
try { return 1; } catch(e) { return 2; }
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-11-16 10:46:23 +00:00
|
|
|
bytecode array length: 32
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(context), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 40 S> */ B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 75 S> */ B(Return),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(23),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(2), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(1),
|
|
|
|
B(PushContext), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 63 S> */ B(LdaSmi), I8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PopContext), R(0),
|
|
|
|
/* 75 S> */ B(Return),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 75 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["e"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2016-06-01 22:54:35 +00:00
|
|
|
[4, 7, 9],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a;
|
|
|
|
try { a = 1 } catch(e1) {};
|
|
|
|
try { a = 2 } catch(e2) { a = 3 }
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-11-16 10:46:23 +00:00
|
|
|
bytecode array length: 61
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(context), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 47 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
/* 49 E> */ B(CreateCatchContext), R(3), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(2),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(Mov), R(context), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 75 S> */ B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(24),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
/* 77 E> */ B(CreateCatchContext), R(3), U8(2), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(2),
|
|
|
|
B(PushContext), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 95 S> */ B(LdaSmi), I8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PopContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 103 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["e1"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["e2"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
[4, 8, 10],
|
2016-11-16 10:46:23 +00:00
|
|
|
[31, 35, 37],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|