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-25 11:24:21 +00:00
|
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(4),
|
|
|
|
B(Inc), U8(8),
|
|
|
|
/* 40 E> */ B(StaGlobalSloppy), U8(0), U8(6),
|
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-04-06 11:54:44 +00:00
|
|
|
bytecode array length: 17
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 26 E> */ B(StackCheck),
|
2017-07-25 11:24:21 +00:00
|
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(4),
|
|
|
|
B(ToNumber), R(0), U8(8),
|
2016-11-08 17:02:45 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-25 11:24:21 +00:00
|
|
|
B(Dec), U8(8),
|
|
|
|
/* 44 E> */ B(StaGlobalSloppy), U8(0), U8(6),
|
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-25 11:24:21 +00:00
|
|
|
/* 46 S> */ B(LdaGlobal), U8(0), U8(4),
|
|
|
|
B(Dec), U8(8),
|
|
|
|
/* 55 E> */ B(StaGlobalStrict), U8(0), U8(6),
|
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-04-06 11:54:44 +00:00
|
|
|
bytecode array length: 17
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 27 E> */ B(StackCheck),
|
2017-07-25 11:24:21 +00:00
|
|
|
/* 32 S> */ B(LdaGlobal), U8(0), U8(4),
|
|
|
|
B(ToNumber), R(0), U8(8),
|
2016-11-08 17:02:45 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-25 11:24:21 +00:00
|
|
|
B(Inc), U8(8),
|
|
|
|
/* 50 E> */ B(StaGlobalSloppy), U8(0), U8(6),
|
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: [
|
|
|
|
]
|
|
|
|
|