2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
try { return 1; } catch(e) { return 2; }
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 28
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Mov), R(context), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 40 S> */ B(LdaSmi), I8(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Jump), U8(19),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CreateCatchContext), R(1), U8(0), U8(1),
|
|
|
|
B(Star), R(0),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(0),
|
|
|
|
B(PushContext), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 63 S> */ B(LdaSmi), I8(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 72 S> */ B(Return),
|
2016-05-11 12:21:56 +00:00
|
|
|
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"],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_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 }
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 57
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Mov), R(context), R(1),
|
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),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Jump), U8(18),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 49 E> */ B(CreateCatchContext), R(2), U8(0), U8(1),
|
|
|
|
B(Star), R(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(1),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Mov), R(context), R(1),
|
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),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Jump), U8(22),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 77 E> */ B(CreateCatchContext), R(2), U8(2), U8(3),
|
|
|
|
B(Star), R(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(1),
|
|
|
|
B(PushContext), R(2),
|
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),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PopContext), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
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"],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["e2"],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
[4, 8, 10],
|
2018-05-02 13:57:26 +00:00
|
|
|
[29, 33, 35],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|