2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; a += 2;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2016-08-23 14:59:10 +00:00
|
|
|
bytecode array length: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 45 S> */ B(AddSmi), U8(2), R(0), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 53 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; a /= 2;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 17
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 45 S> */ B(LdaSmi), U8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(Div), R(0), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 53 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = { val: 2 }; a.name *= 2;
|
|
|
|
"
|
|
|
|
frame size: 3
|
|
|
|
parameter count: 1
|
2016-11-09 13:16:01 +00:00
|
|
|
bytecode array length: 26
|
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-11-09 13:16:01 +00:00
|
|
|
/* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2),
|
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(Mul), R(2), U8(4),
|
|
|
|
/* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = { 1: 2 }; a[1] ^= 2;
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-11-09 13:16:01 +00:00
|
|
|
bytecode array length: 29
|
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-27 15:57:35 +00:00
|
|
|
/* 52 S> */ B(LdaSmi), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(LdaKeyedProperty), R(0), U8(2),
|
|
|
|
B(Star), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(BitwiseXor), R(3), U8(4),
|
|
|
|
/* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 63 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; (function f() { return a; }); a |= 24;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2017-01-09 15:31:00 +00:00
|
|
|
bytecode array length: 25
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-08-03 14:41:47 +00:00
|
|
|
B(CreateFunctionContext), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(0),
|
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
2016-11-10 10:41:48 +00:00
|
|
|
/* 75 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(1),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(BitwiseOrSmi), U8(24), R(1), U8(3),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 77 E> */ B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 84 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|