2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: mixed
|
|
|
|
execute: yes
|
|
|
|
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-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 44
|
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-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 68 S> */ B(JumpIfUndefined), U8(37),
|
|
|
|
B(JumpIfNull), U8(35),
|
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),
|
|
|
|
/* 63 S> */ B(ForInDone), R(7), R(6),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfUndefined), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 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),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(-23),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 85 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (var p in [1,2,3]) { x += p; }
|
|
|
|
"
|
|
|
|
frame size: 9
|
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 55
|
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(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(JumpIfUndefined), U8(45),
|
|
|
|
B(JumpIfNull), U8(43),
|
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),
|
|
|
|
/* 54 S> */ B(ForInDone), R(7), R(6),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(JumpIfTrue), U8(30),
|
|
|
|
B(ForInNext), R(3), R(7), R(4), U8(2),
|
|
|
|
B(JumpIfUndefined), U8(17),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 45 E> */ B(StackCheck),
|
|
|
|
B(Star), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 70 S> */ B(Ldar), R(0),
|
2016-08-08 01:15:22 +00:00
|
|
|
/* 75 E> */ B(Add), R(1), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(1), R(8),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
/* 72 E> */ B(ForInStep), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(Jump), U8(-31),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 80 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
"
|
|
|
|
frame size: 8
|
|
|
|
parameter count: 1
|
2016-06-09 13:32:33 +00:00
|
|
|
bytecode array length: 80
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
|
|
|
|
B(Mov), R(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfUndefined), U8(65),
|
|
|
|
B(JumpIfNull), U8(63),
|
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),
|
|
|
|
/* 68 S> */ B(ForInDone), R(5), R(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfTrue), U8(50),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(9),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfUndefined), U8(37),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 67 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 95 S> */ B(Nop),
|
|
|
|
/* 100 E> */ B(LdrNamedProperty), R(0), U8(2), U8(3), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(10),
|
|
|
|
/* 106 E> */ B(TestEqual), R(7),
|
|
|
|
B(JumpIfFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 113 S> */ B(Jump), U8(16),
|
|
|
|
/* 125 S> */ B(Nop),
|
|
|
|
/* 130 E> */ B(LdrNamedProperty), R(0), U8(2), U8(5), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(20),
|
|
|
|
/* 136 E> */ B(TestEqual), R(7),
|
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 143 S> */ B(Jump), U8(8),
|
|
|
|
B(ForInStep), R(5),
|
|
|
|
B(Star), R(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Jump), U8(-51),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 152 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = [ 10, 11, 12 ] ;
|
|
|
|
for (x[0] in [1,2,3]) { return x[3]; }
|
|
|
|
"
|
|
|
|
frame size: 9
|
|
|
|
parameter count: 1
|
2016-06-09 13:32:33 +00:00
|
|
|
bytecode array length: 61
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfUndefined), U8(48),
|
|
|
|
B(JumpIfNull), U8(46),
|
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),
|
|
|
|
/* 65 S> */ B(ForInDone), R(5), R(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(JumpIfTrue), U8(33),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(ForInNext), R(1), R(5), R(2), U8(7),
|
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),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 64 E> */ B(StaKeyedPropertySloppy), R(0), R(8), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 59 E> */ B(StackCheck),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 83 S> */ B(LdaSmi), U8(3),
|
|
|
|
/* 91 E> */ B(LdaKeyedProperty), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 98 S> */ B(Return),
|
|
|
|
B(ForInStep), R(5),
|
|
|
|
B(Star), R(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Jump), U8(-34),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 98 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|