2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; return x;
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-05-23 13:31:53 +00:00
|
|
|
bytecode array length: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 45 S> */ B(Nop),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 55 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; return x + 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(Add), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; return x - 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(Sub), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 4; return x * 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(4),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(Mul), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 4; return x / 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(4),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(Div), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 4; return x % 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(4),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(Mod), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 1; return x | 2;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(2),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(BitwiseOr), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 1; return x ^ 2;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(2),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(BitwiseXor), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 1; return x & 2;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(2),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 54 E> */ B(BitwiseAnd), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10; return x << 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 55 E> */ B(ShiftLeft), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 61 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10; return x >> 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 55 E> */ B(ShiftRight), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 61 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10; return x >>> 3;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(3),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 55 E> */ B(ShiftRightLogical), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; return (x, 3);
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 7
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 60 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|