2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
top level: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1;
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-07-13 11:32:35 +00:00
|
|
|
bytecode array length: 34
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
2016-07-13 11:32:35 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
/* 8 S> */ B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
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: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {}
|
|
|
|
"
|
2016-07-13 11:32:35 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-07-13 11:32:35 +00:00
|
|
|
bytecode array length: 18
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(1),
|
2016-07-13 11:32:35 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 15 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;
|
|
|
|
a=2;
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-07-13 11:32:35 +00:00
|
|
|
bytecode array length: 40
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
2016-07-13 11:32:35 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
|
|
|
/* 8 S> */ B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 11 S> */ B(LdaSmi), I8(2),
|
2017-05-08 20:15:23 +00:00
|
|
|
/* 12 E> */ B(StaGlobalSloppy), U8(1), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 15 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 ["a"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {}
|
|
|
|
f();
|
|
|
|
"
|
2016-07-13 11:32:35 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-04-11 14:20:30 +00:00
|
|
|
bytecode array length: 27
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
2016-07-13 11:32:35 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-05-08 20:15:23 +00:00
|
|
|
/* 16 S> */ B(LdaGlobal), U8(1), U8(2),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(1),
|
2017-05-08 20:15:23 +00:00
|
|
|
/* 16 E> */ B(CallUndefinedReceiver0), R(1), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 20 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-11-16 18:17:22 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|