2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var global = 1;
|
|
|
|
function f() { return ++global; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
2016-11-16 18:17:22 +00:00
|
|
|
bytecode array length: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 26 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Inc), U8(2),
|
2017-12-13 21:44:29 +00:00
|
|
|
/* 40 E> */ B(StaGlobal), U8(0), U8(3),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 47 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var global = 1;
|
|
|
|
function f() { return global--; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2017-09-11 16:57:39 +00:00
|
|
|
bytecode array length: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 26 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ToNumeric), U8(2),
|
2017-09-11 16:57:39 +00:00
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Dec), U8(2),
|
2017-12-13 21:44:29 +00:00
|
|
|
/* 44 E> */ B(StaGlobal), U8(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 47 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
unallocated = 1;
|
|
|
|
function f() { 'use strict'; return --unallocated; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
2016-11-16 18:17:22 +00:00
|
|
|
bytecode array length: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 27 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 46 S> */ B(LdaGlobal), U8(0), U8(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Dec), U8(2),
|
2017-12-13 21:44:29 +00:00
|
|
|
/* 55 E> */ B(StaGlobal), U8(0), U8(3),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
unallocated = 1;
|
|
|
|
function f() { return unallocated++; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2017-09-11 16:57:39 +00:00
|
|
|
bytecode array length: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 27 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 32 S> */ B(LdaGlobal), U8(0), U8(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(ToNumeric), U8(2),
|
2017-09-11 16:57:39 +00:00
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Inc), U8(2),
|
2017-12-13 21:44:29 +00:00
|
|
|
/* 50 E> */ B(StaGlobal), U8(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 53 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|