1# 2# Autogenerated by generate-bytecode-expectations. 3# 4 5--- 6pool type: string 7execute: yes 8wrap: no 9test function name: f 10 11--- 12snippet: " 13 var global = 1; 14 function f() { return ++global; } 15 f(); 16" 17frame size: 0 18parameter count: 1 19bytecode array length: 8 20bytecodes: [ 21 /* 26 E> */ B(StackCheck), 22 /* 31 S> */ B(LdaGlobal), U8(1), 23 B(Inc), 24 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(3), 25 /* 48 S> */ B(Return), 26] 27constant pool: [ 28 "global", 29] 30handlers: [ 31] 32 33--- 34snippet: " 35 var global = 1; 36 function f() { return global--; } 37 f(); 38" 39frame size: 1 40parameter count: 1 41bytecode array length: 13 42bytecodes: [ 43 /* 26 E> */ B(StackCheck), 44 /* 31 S> */ B(LdaGlobal), U8(1), 45 B(ToNumber), 46 B(Star), R(0), 47 B(Dec), 48 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(3), 49 B(Ldar), R(0), 50 /* 48 S> */ B(Return), 51] 52constant pool: [ 53 "global", 54] 55handlers: [ 56] 57 58--- 59snippet: " 60 unallocated = 1; 61 function f() { 'use strict'; return --unallocated; } 62 f(); 63" 64frame size: 0 65parameter count: 1 66bytecode array length: 8 67bytecodes: [ 68 /* 27 E> */ B(StackCheck), 69 /* 46 S> */ B(LdaGlobal), U8(1), 70 B(Dec), 71 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(3), 72 /* 68 S> */ B(Return), 73] 74constant pool: [ 75 "unallocated", 76] 77handlers: [ 78] 79 80--- 81snippet: " 82 unallocated = 1; 83 function f() { return unallocated++; } 84 f(); 85" 86frame size: 1 87parameter count: 1 88bytecode array length: 13 89bytecodes: [ 90 /* 27 E> */ B(StackCheck), 91 /* 32 S> */ B(LdaGlobal), U8(1), 92 B(ToNumber), 93 B(Star), R(0), 94 B(Inc), 95 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(3), 96 B(Ldar), R(0), 97 /* 54 S> */ B(Return), 98] 99constant pool: [ 100 "unallocated", 101] 102handlers: [ 103] 104 105