2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var ld_a = 1;
|
|
|
|
while(true) {
|
|
|
|
ld_a = ld_a + ld_a;
|
|
|
|
if (ld_a > 10) break;
|
|
|
|
}
|
|
|
|
return ld_a;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 27
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 64 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 76 E> */ B(Add), R(0), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 86 S> */ B(LdaSmi), I8(10),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 95 E> */ B(TestGreaterThan), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2020-03-11 15:07:16 +00:00
|
|
|
/* 101 S> */ B(Jump), U8(6),
|
|
|
|
/* 48 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(17), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 110 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 122 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var ld_a = 1;
|
|
|
|
do {
|
|
|
|
ld_a = ld_a + ld_a;
|
|
|
|
if (ld_a > 10) continue;
|
|
|
|
} while(false);
|
|
|
|
return ld_a;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2020-03-11 15:07:16 +00:00
|
|
|
bytecode array length: 21
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 67 S> */ B(Add), R(0), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 77 S> */ B(LdaSmi), I8(10),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 86 E> */ B(TestGreaterThan), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 92 S> */ B(Jump), U8(2),
|
|
|
|
/* 118 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 130 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var ld_a = 1;
|
|
|
|
ld_a = ld_a + ld_a;
|
|
|
|
return ld_a;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 62 S> */ B(Add), R(0), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 84 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|