| Index: test/cctest/interpreter/TryCatch.golden
|
| diff --git a/test/cctest/interpreter/TryCatch.golden b/test/cctest/interpreter/TryCatch.golden
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fa1913bb5b7e44d2ad13e3d27059279242f7ee66
|
| --- /dev/null
|
| +++ b/test/cctest/interpreter/TryCatch.golden
|
| @@ -0,0 +1,95 @@
|
| +#
|
| +# Autogenerated by generate-bytecode-expectations
|
| +#
|
| +
|
| +---
|
| +pool type: string
|
| +execute: yes
|
| +wrap: yes
|
| +
|
| +---
|
| +snippet: "
|
| + try { return 1; } catch(e) { return 2; }
|
| +"
|
| +frame size: 5 # in multiples of sizeof(void*)
|
| +parameter count: 1
|
| +bytecodes: [
|
| + B(StackCheck),
|
| + B(Mov), R(context), R(1),
|
| + B(LdaSmi8), U8(1),
|
| + B(Return),
|
| + B(Star), R(3),
|
| + B(LdaConstant), U8(0),
|
| + B(Star), R(2),
|
| + B(Ldar), R(closure),
|
| + B(Star), R(4),
|
| + B(CallRuntime), U16(463), R(2), U8(3),
|
| + B(Star), R(1),
|
| + B(CallRuntime), U16(185), R(0), U8(0),
|
| + B(Ldar), R(1),
|
| + B(PushContext), R(0),
|
| + B(LdaSmi8), U8(2),
|
| + B(PopContext), R(0),
|
| + B(Return),
|
| + B(LdaUndefined),
|
| + B(Return),
|
| +]
|
| +constant pool: [
|
| + "e",
|
| +]
|
| +handlers: [
|
| + [4, 7, 7],
|
| +]
|
| +
|
| +---
|
| +snippet: "
|
| + var a; try { a = 1 } catch(e1) {}; try { a = 2 } catch(e2) { a = 3 }
|
| +"
|
| +frame size: 6 # in multiples of sizeof(void*)
|
| +parameter count: 1
|
| +bytecodes: [
|
| + B(StackCheck),
|
| + B(Mov), R(context), R(2),
|
| + B(LdaSmi8), U8(1),
|
| + B(Star), R(0),
|
| + B(Jump), U8(30),
|
| + B(Star), R(4),
|
| + B(LdaConstant), U8(0),
|
| + B(Star), R(3),
|
| + B(Ldar), R(closure),
|
| + B(Star), R(5),
|
| + B(CallRuntime), U16(463), R(3), U8(3),
|
| + B(Star), R(2),
|
| + B(CallRuntime), U16(185), R(0), U8(0),
|
| + B(Ldar), R(2),
|
| + B(PushContext), R(1),
|
| + B(PopContext), R(1),
|
| + B(Mov), R(context), R(2),
|
| + B(LdaSmi8), U8(2),
|
| + B(Star), R(0),
|
| + B(Jump), U8(34),
|
| + B(Star), R(4),
|
| + B(LdaConstant), U8(1),
|
| + B(Star), R(3),
|
| + B(Ldar), R(closure),
|
| + B(Star), R(5),
|
| + B(CallRuntime), U16(463), R(3), U8(3),
|
| + B(Star), R(2),
|
| + B(CallRuntime), U16(185), R(0), U8(0),
|
| + B(Ldar), R(2),
|
| + B(PushContext), R(1),
|
| + B(LdaSmi8), U8(3),
|
| + B(Star), R(0),
|
| + B(PopContext), R(1),
|
| + B(LdaUndefined),
|
| + B(Return),
|
| +]
|
| +constant pool: [
|
| + "e1",
|
| + "e2",
|
| +]
|
| +handlers: [
|
| + [4, 8, 10],
|
| + [41, 45, 47],
|
| +]
|
| +
|
|
|