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
|
2016-09-13 13:07:15 +00:00
|
|
|
bytecode array length: 45
|
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),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 68 S> */ B(JumpIfUndefined), U8(38),
|
|
|
|
B(JumpIfNull), U8(36),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(3),
|
|
|
|
B(ForInPrepare), R(3), R(4),
|
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),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfFalse), U8(23),
|
2017-07-03 15:26:53 +00:00
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfUndefined), U8(9),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 54 E> */ B(StackCheck),
|
|
|
|
B(Star), R(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
/* 73 S> */ B(Nop),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 85 S> */ B(Return),
|
|
|
|
B(ForInStep), R(7),
|
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(23), 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
|
2016-09-13 13:07:15 +00:00
|
|
|
bytecode array length: 56
|
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-07-03 15:26:53 +00:00
|
|
|
/* 59 S> */ B(CreateArrayLiteral), U8(0), U8(4), U8(17),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfUndefined), U8(46),
|
|
|
|
B(JumpIfNull), U8(44),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(3),
|
|
|
|
B(ForInPrepare), R(3), R(4),
|
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-07-03 15:26:53 +00:00
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(6),
|
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),
|
|
|
|
B(Star), R(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
/* 70 S> */ B(Ldar), R(1),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 75 E> */ B(Add), R(0), U8(5),
|
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: [
|
2017-04-18 12:46:39 +00:00
|
|
|
TUPLE2_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
|
2017-04-11 11:01:28 +00:00
|
|
|
bytecode array length: 87
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(4), U8(21), R(1),
|
2016-08-09 10:30:03 +00:00
|
|
|
B(Mov), R(1), R(0),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(5), U8(17),
|
2017-04-11 11:01:28 +00:00
|
|
|
B(JumpIfUndefined), U8(72),
|
|
|
|
B(JumpIfNull), U8(70),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(1),
|
|
|
|
B(ForInPrepare), R(1), R(2),
|
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-04-11 11:01:28 +00:00
|
|
|
B(JumpIfFalse), U8(57),
|
2017-07-03 15:26:53 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(16),
|
2017-04-11 11:01:28 +00:00
|
|
|
B(JumpIfUndefined), U8(43),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2017-04-11 11:01:28 +00:00
|
|
|
B(Ldar), R(6),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 95 S> */ B(Nop),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 100 E> */ B(LdaNamedProperty), R(0), U8(2), U8(8),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(10),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 106 E> */ B(TestEqual), R(6), U8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-11-09 13:16:01 +00:00
|
|
|
/* 113 S> */ B(Jump), U8(18),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 125 S> */ B(Nop),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 130 E> */ B(LdaNamedProperty), R(0), U8(2), U8(11),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(20),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 136 E> */ B(TestEqual), R(6), U8(13),
|
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-04-11 11:01:28 +00:00
|
|
|
B(JumpLoop), U8(57), 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: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2017-04-18 12:46:39 +00:00
|
|
|
TUPLE2_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
|
2016-09-13 13:07:15 +00:00
|
|
|
bytecode array length: 62
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(4), U8(17),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 72 S> */ B(CreateArrayLiteral), U8(1), U8(5), U8(17),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfUndefined), U8(49),
|
|
|
|
B(JumpIfNull), U8(47),
|
2016-07-29 11:14:55 +00:00
|
|
|
B(ToObject), R(1),
|
|
|
|
B(ForInPrepare), R(1), R(2),
|
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),
|
2017-07-03 15:26:53 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(12),
|
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),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(10),
|
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),
|
2017-07-03 15:26:53 +00:00
|
|
|
/* 91 E> */ B(LdaKeyedProperty), R(0), U8(8),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 98 S> */ B(Return),
|
|
|
|
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: [
|
2017-04-18 12:46:39 +00:00
|
|
|
TUPLE2_TYPE,
|
|
|
|
TUPLE2_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|