2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# 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: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
/* 8 S> */ 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),
|
|
|
|
/* 10 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: "
|
|
|
|
function f() {}
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 15
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
|
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 15 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1;
|
|
|
|
a=2;
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 37
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
/* 8 S> */ 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),
|
|
|
|
/* 11 S> */ B(LdaSmi), U8(2),
|
|
|
|
/* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3),
|
|
|
|
B(Star), R(0),
|
|
|
|
/* 15 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: "
|
|
|
|
function f() {}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 3
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 29
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
|
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
/* 16 S> */ B(LdaUndefined),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaGlobal), U8(1), U8(1),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3),
|
|
|
|
B(Star), R(0),
|
|
|
|
/* 20 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|