blob: 5a299760ab3607e0258eda19d09925943455b2cc [file] [log] [blame]
#
# Autogenerated by generate-bytecode-expectations.
#
---
wrap: yes
---
snippet: "
try { return 1; } catch(e) { return 2; }
"
frame size: 2
parameter count: 1
bytecode array length: 22
bytecodes: [
B(Mov), R(context), R(0),
/* 40 S> */ B(LdaSmi), I8(1),
/* 49 S> */ B(Return),
B(Star), R(1),
B(CreateCatchContext), R(1), U8(0),
B(Star), R(0),
B(LdaTheHole),
B(SetPendingMessage),
B(Ldar), R(0),
B(PushContext), R(1),
/* 63 S> */ B(LdaSmi), I8(2),
/* 72 S> */ B(Return),
]
constant pool: [
SCOPE_INFO_TYPE,
]
handlers: [
[3, 6, 6],
]
---
snippet: "
var a;
try { a = 1 } catch(e1) {};
try { a = 2 } catch(e2) { a = 3 }
"
frame size: 3
parameter count: 1
bytecode array length: 54
bytecodes: [
B(Mov), R(context), R(1),
/* 47 S> */ B(LdaSmi), I8(1),
B(Star), R(0),
B(Jump), U8(17),
B(Star), R(2),
/* 49 E> */ B(CreateCatchContext), R(2), U8(0),
B(Star), R(1),
B(LdaTheHole),
B(SetPendingMessage),
B(Ldar), R(1),
B(PushContext), R(2),
B(PopContext), R(2),
B(Mov), R(context), R(1),
/* 75 S> */ B(LdaSmi), I8(2),
B(Star), R(0),
B(Jump), U8(21),
B(Star), R(2),
/* 77 E> */ B(CreateCatchContext), R(2), U8(1),
B(Star), R(1),
B(LdaTheHole),
B(SetPendingMessage),
B(Ldar), R(1),
B(PushContext), R(2),
/* 95 S> */ B(LdaSmi), I8(3),
B(Star), R(0),
B(PopContext), R(2),
B(LdaUndefined),
/* 103 S> */ B(Return),
]
constant pool: [
SCOPE_INFO_TYPE,
SCOPE_INFO_TYPE,
]
handlers: [
[3, 7, 9],
[27, 31, 33],
]