2018-08-07 13:14:23 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
top level: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
|
|
|
|
l = {
|
2018-08-10 12:41:06 +00:00
|
|
|
'aa': 1.1,
|
|
|
|
'bb': 2.2
|
2018-08-07 13:14:23 +00:00
|
|
|
};
|
|
|
|
|
2018-08-10 12:41:06 +00:00
|
|
|
v = l['aa'] + l['bb'];
|
|
|
|
l['bb'] = 7;
|
|
|
|
l['aa'] = l['bb'];
|
|
|
|
|
2018-08-07 13:14:23 +00:00
|
|
|
"
|
|
|
|
frame size: 3
|
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 71
|
2018-08-07 13:14:23 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 0 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 7 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
2018-08-07 13:14:23 +00:00
|
|
|
/* 9 E> */ B(StaGlobal), U8(1), U8(1),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 66 S> */ B(LdaGlobal), U8(1), U8(4),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(1),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 71 E> */ B(LdaNamedProperty), R(1), U8(2), U8(6),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(1),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 80 E> */ B(LdaGlobal), U8(1), U8(4),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(2),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 81 E> */ B(LdaNamedProperty), R(2), U8(3), U8(8),
|
|
|
|
/* 78 E> */ B(Add), R(1), U8(3),
|
|
|
|
/* 68 E> */ B(StaGlobal), U8(4), U8(10),
|
|
|
|
/* 95 S> */ B(LdaGlobal), U8(1), U8(4),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaSmi), I8(7),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 103 E> */ B(StaNamedProperty), R(1), U8(3), U8(12),
|
|
|
|
/* 114 S> */ B(LdaGlobal), U8(1), U8(4),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(1),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 124 E> */ B(LdaGlobal), U8(1), U8(4),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(2),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 125 E> */ B(LdaNamedProperty), R(2), U8(3), U8(8),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Star), R(2),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 122 E> */ B(StaNamedProperty), R(1), U8(2), U8(14),
|
2018-08-07 13:14:23 +00:00
|
|
|
B(Mov), R(2), R(0),
|
|
|
|
B(Ldar), R(0),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 139 S> */ B(Return),
|
2018-08-07 13:14:23 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["l"],
|
2018-08-10 12:41:06 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["aa"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["bb"],
|
2018-08-07 13:14:23 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["v"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
|
|
|
|
l = {
|
2018-08-10 12:41:06 +00:00
|
|
|
'cc': 3.1,
|
|
|
|
'dd': 4.2
|
2018-08-07 13:14:23 +00:00
|
|
|
};
|
|
|
|
if (l['cc'] < 3) {
|
|
|
|
l['cc'] = 3;
|
|
|
|
} else {
|
|
|
|
l['dd'] = 3;
|
|
|
|
}
|
2018-08-10 12:41:06 +00:00
|
|
|
|
2018-08-07 13:14:23 +00:00
|
|
|
"
|
|
|
|
frame size: 3
|
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 67
|
2018-08-07 13:14:23 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 0 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 7 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
2018-08-07 13:14:23 +00:00
|
|
|
/* 9 E> */ B(StaGlobal), U8(1), U8(1),
|
|
|
|
/* 65 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 70 E> */ B(LdaNamedProperty), R(1), U8(2), U8(5),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
/* 77 E> */ B(TestLessThan), R(1), U8(7),
|
|
|
|
B(JumpIfFalse), U8(22),
|
|
|
|
/* 92 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 100 E> */ B(StaNamedProperty), R(1), U8(2), U8(8),
|
|
|
|
B(Mov), R(2), R(0),
|
|
|
|
B(Ldar), R(2),
|
|
|
|
B(Jump), U8(20),
|
|
|
|
/* 128 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 136 E> */ B(StaNamedProperty), R(1), U8(3), U8(10),
|
|
|
|
B(Mov), R(2), R(0),
|
|
|
|
B(Ldar), R(2),
|
|
|
|
B(Ldar), R(0),
|
2018-08-10 12:41:06 +00:00
|
|
|
/* 155 S> */ B(Return),
|
2018-08-07 13:14:23 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["l"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["cc"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["dd"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|