2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: string
|
|
|
|
execute: yes
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var global = 1;
|
|
|
|
function f() { return global &= 1; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-05-25 09:55:26 +00:00
|
|
|
bytecode array length: 13
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 26 E> */ B(StackCheck),
|
2016-05-25 09:55:26 +00:00
|
|
|
/* 31 S> */ B(LdrGlobal), U8(0), U8(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(BitwiseAnd), R(0),
|
|
|
|
/* 45 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
|
|
/* 51 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
"global",
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
unallocated = 1;
|
|
|
|
function f() { return unallocated += 1; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-05-25 09:55:26 +00:00
|
|
|
bytecode array length: 13
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 27 E> */ B(StackCheck),
|
2016-05-25 09:55:26 +00:00
|
|
|
/* 32 S> */ B(LdrGlobal), U8(0), U8(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Add), R(0),
|
|
|
|
/* 51 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
|
|
/* 57 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
"unallocated",
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|