2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var p in null) {}
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 3
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 57 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var p in undefined) {}
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 3
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var p in undefined) {}
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 3
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 'potatoes';
|
|
|
|
for (var p in x) { return p; }
|
|
|
|
"
|
|
|
|
frame size: 8
|
|
|
|
parameter count: 1
|
2017-09-01 10:49:06 +00:00
|
|
|
bytecode array length: 46
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(0),
|
2017-09-01 10:49:06 +00:00
|
|
|
/* 68 S> */ B(JumpIfUndefined), U8(39),
|
|
|
|
B(JumpIfNull), U8(37),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(3),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(ForInEnumerate), R(3),
|
|
|
|
B(ForInPrepare), R(4), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(7),
|
2016-08-29 08:47:12 +00:00
|
|
|
/* 63 S> */ B(ForInContinue), R(7), R(6),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpIfFalse), U8(22),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(0),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpIfUndefined), U8(8),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 54 E> */ B(StackCheck),
|
2019-01-09 13:21:06 +00:00
|
|
|
/* 63 S> */ B(Star), R(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 82 S> */ B(Return),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInStep), R(7),
|
|
|
|
B(Star), R(7),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpLoop), U8(22), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 85 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 ["potatoes"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (var p in [1,2,3]) { x += p; }
|
|
|
|
"
|
|
|
|
frame size: 9
|
|
|
|
parameter count: 1
|
2017-09-01 10:49:06 +00:00
|
|
|
bytecode array length: 58
|
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-08-25 19:11:19 +00:00
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 59 S> */ B(CreateArrayLiteral), U8(0), U8(1), U8(37),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(JumpIfUndefined), U8(48),
|
|
|
|
B(JumpIfNull), U8(46),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(3),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(ForInEnumerate), R(3),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ForInPrepare), R(4), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(7),
|
2016-08-29 08:47:12 +00:00
|
|
|
/* 54 S> */ B(ForInContinue), R(7), R(6),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfFalse), U8(31),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(0),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(JumpIfUndefined), U8(17),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2019-01-09 13:21:06 +00:00
|
|
|
/* 54 S> */ B(Star), R(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
/* 70 S> */ B(Ldar), R(1),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 75 E> */ B(Add), R(0), U8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(0), R(8),
|
|
|
|
B(Star), R(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 72 E> */ B(ForInStep), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(31), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 80 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = { 'a': 1, 'b': 2 };
|
|
|
|
for (x['a'] in [10, 20, 30]) {
|
|
|
|
if (x['a'] == 10) continue;
|
|
|
|
if (x['a'] == 20) break;
|
|
|
|
}
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 85
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(37),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(JumpIfUndefined), U8(72),
|
|
|
|
B(JumpIfNull), U8(70),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(1),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(ForInEnumerate), R(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ForInPrepare), R(2), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-08-29 08:47:12 +00:00
|
|
|
/* 68 S> */ B(ForInContinue), R(5), R(4),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpIfFalse), U8(55),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(1),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpIfUndefined), U8(41),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2017-04-11 11:01:28 +00:00
|
|
|
B(Ldar), R(6),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 67 E> */ B(StaNamedProperty), R(0), U8(2), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 100 S> */ B(LdaNamedProperty), R(0), U8(2), U8(5),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(10),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 106 E> */ B(TestEqual), R(6), U8(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2017-07-17 19:02:35 +00:00
|
|
|
/* 113 S> */ B(Jump), U8(17),
|
2018-05-21 09:45:57 +00:00
|
|
|
/* 130 S> */ B(LdaNamedProperty), R(0), U8(2), U8(5),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(20),
|
2018-05-21 09:45:57 +00:00
|
|
|
/* 136 E> */ B(TestEqual), R(6), U8(8),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 143 S> */ B(Jump), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInStep), R(5),
|
|
|
|
B(Star), R(5),
|
2017-07-17 19:02:35 +00:00
|
|
|
B(JumpLoop), U8(55), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 152 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
|
|
|
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = [ 10, 11, 12 ] ;
|
|
|
|
for (x[0] in [1,2,3]) { return x[3]; }
|
|
|
|
"
|
|
|
|
frame size: 9
|
|
|
|
parameter count: 1
|
2017-09-01 10:49:06 +00:00
|
|
|
bytecode array length: 64
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 72 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(37),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(JumpIfUndefined), U8(51),
|
|
|
|
B(JumpIfNull), U8(49),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(1),
|
2017-09-01 10:49:06 +00:00
|
|
|
B(ForInEnumerate), R(1),
|
2018-03-05 10:22:47 +00:00
|
|
|
B(ForInPrepare), R(2), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-08-29 08:47:12 +00:00
|
|
|
/* 65 S> */ B(ForInContinue), R(5), R(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfFalse), U8(34),
|
2018-03-05 10:22:47 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfUndefined), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaZero),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Ldar), R(6),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 64 E> */ B(StaKeyedProperty), R(0), R(8), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 83 S> */ B(LdaSmi), I8(3),
|
2018-03-05 10:22:47 +00:00
|
|
|
/* 91 E> */ B(LdaKeyedProperty), R(0), U8(5),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 95 S> */ B(Return),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInStep), R(5),
|
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(34), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 98 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
|
|
|
|
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|