48d082af38
This change introduces wide prefix bytecodes to support wide (16-bit) and extra-wide (32-bit) operands. It retires the previous wide-bytecodes and reduces the number of operand types. Operands are now either scalable or fixed size. Scalable operands increase in width when a bytecode is prefixed with wide or extra-wide. The bytecode handler table is extended to 256*3 entries. The first 256 entries are used for bytecodes with 8-bit operands, the second 256 entries are used for bytecodes with operands that scale to 16-bits, and the third group of 256 entries are used for bytecodes with operands that scale to 32-bits. LOG=N BUG=v8:4747,v8:4280 Review URL: https://codereview.chromium.org/1783483002 Cr-Commit-Position: refs/heads/master@{#34955}
129 lines
2.2 KiB
Plaintext
129 lines
2.2 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
pool type: mixed
|
|
execute: no
|
|
wrap: no
|
|
top level: yes
|
|
|
|
---
|
|
snippet: "
|
|
var a = 1;
|
|
"
|
|
frame size: 4
|
|
parameter count: 1
|
|
bytecode array length: 31
|
|
bytecodes: [
|
|
B(LdaConstant), U8(0),
|
|
B(Star), R(1),
|
|
B(LdaZero),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
B(StackCheck),
|
|
B(LdaConstant), U8(1),
|
|
B(Star), R(1),
|
|
B(LdaZero),
|
|
B(Star), R(2),
|
|
B(LdaSmi), U8(1),
|
|
B(Star), R(3),
|
|
B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
|
|
B(LdaUndefined),
|
|
B(Return),
|
|
]
|
|
constant pool: [
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f() {}
|
|
"
|
|
frame size: 2
|
|
parameter count: 1
|
|
bytecode array length: 15
|
|
bytecodes: [
|
|
B(LdaConstant), U8(0),
|
|
B(Star), R(0),
|
|
B(LdaZero),
|
|
B(Star), R(1),
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
|
|
B(StackCheck),
|
|
B(LdaUndefined),
|
|
B(Return),
|
|
]
|
|
constant pool: [
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var a = 1;
|
|
a=2;
|
|
"
|
|
frame size: 4
|
|
parameter count: 1
|
|
bytecode array length: 37
|
|
bytecodes: [
|
|
B(LdaConstant), U8(0),
|
|
B(Star), R(1),
|
|
B(LdaZero),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
B(StackCheck),
|
|
B(LdaConstant), U8(1),
|
|
B(Star), R(1),
|
|
B(LdaZero),
|
|
B(Star), R(2),
|
|
B(LdaSmi), U8(1),
|
|
B(Star), R(3),
|
|
B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
|
|
B(LdaSmi), U8(2),
|
|
B(StaGlobalSloppy), U8(1), U8(3),
|
|
B(Star), R(0),
|
|
B(Return),
|
|
]
|
|
constant pool: [
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f() {}
|
|
f();
|
|
"
|
|
frame size: 3
|
|
parameter count: 1
|
|
bytecode array length: 29
|
|
bytecodes: [
|
|
B(LdaConstant), U8(0),
|
|
B(Star), R(1),
|
|
B(LdaZero),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
B(StackCheck),
|
|
B(LdaUndefined),
|
|
B(Star), R(2),
|
|
B(LdaGlobal), U8(1), U8(1),
|
|
B(Star), R(1),
|
|
B(Call), R(1), R(2), U8(1), U8(3),
|
|
B(Star), R(0),
|
|
B(Return),
|
|
]
|
|
constant pool: [
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|