# # Autogenerated by generate-bytecode-expectations. # --- wrap: no test function name: f --- snippet: " var global = 1; function f() { return ++global; } f(); " frame size: 1 parameter count: 1 bytecode array length: 12 bytecodes: [ /* 31 S> */ B(LdaGlobal), U8(0), U8(0), B(Inc), U8(2), B(Star0), /* 40 E> */ B(StaGlobal), U8(0), U8(3), B(Ldar), R(0), /* 47 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], ] handlers: [ ] --- snippet: " var global = 1; function f() { return global--; } f(); " frame size: 2 parameter count: 1 bytecode array length: 15 bytecodes: [ /* 31 S> */ B(LdaGlobal), U8(0), U8(0), B(ToNumeric), U8(2), B(Star0), B(Dec), U8(2), B(Star1), /* 44 E> */ B(StaGlobal), U8(0), U8(3), B(Ldar), R(0), /* 47 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], ] handlers: [ ] --- snippet: " unallocated = 1; function f() { 'use strict'; return --unallocated; } f(); " frame size: 1 parameter count: 1 bytecode array length: 12 bytecodes: [ /* 46 S> */ B(LdaGlobal), U8(0), U8(0), B(Dec), U8(2), B(Star0), /* 55 E> */ B(StaGlobal), U8(0), U8(3), B(Ldar), R(0), /* 67 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], ] handlers: [ ] --- snippet: " unallocated = 1; function f() { return unallocated++; } f(); " frame size: 2 parameter count: 1 bytecode array length: 15 bytecodes: [ /* 32 S> */ B(LdaGlobal), U8(0), U8(0), B(ToNumeric), U8(2), B(Star0), B(Inc), U8(2), B(Star1), /* 50 E> */ B(StaGlobal), U8(0), U8(3), B(Ldar), R(0), /* 53 S> */ B(Return), ] constant pool: [ ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], ] handlers: [ ]