2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: mixed
|
|
|
|
execute: yes
|
|
|
|
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-08-23 14:59:10 +00:00
|
|
|
/* 45 S> */ B(AddSmi), U8(2), R(0), U8(1),
|
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-08-08 01:15:22 +00:00
|
|
|
B(Div), R(0), U8(1),
|
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-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 25
|
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
|
|
|
/* 54 S> */ B(LdrNamedProperty), R(0), U8(1), U8(1), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(Mul), R(2), U8(3),
|
|
|
|
/* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = { 1: 2 }; a[1] ^= 2;
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-08-08 01:15:22 +00:00
|
|
|
bytecode array length: 28
|
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-05-27 15:57:35 +00:00
|
|
|
B(LdrKeyedProperty), R(0), U8(1), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-08-08 01:15:22 +00:00
|
|
|
B(BitwiseXor), R(3), U8(3),
|
|
|
|
/* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 63 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; (function f() { return a; }); a |= 24;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2016-08-23 14:59:10 +00:00
|
|
|
bytecode array length: 26
|
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),
|
|
|
|
/* 42 E> */ B(StaContextSlot), R(context), U8(4),
|
2016-06-30 15:32:28 +00:00
|
|
|
/* 45 S> */ B(CreateClosure), U8(0), U8(2),
|
2016-05-25 09:55:26 +00:00
|
|
|
/* 75 S> */ B(LdrContextSlot), R(context), U8(4), R(1),
|
2016-08-23 14:59:10 +00:00
|
|
|
B(BitwiseOrSmi), U8(24), R(1), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 77 E> */ B(StaContextSlot), R(context), U8(4),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 84 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|