1 # 2 # Autogenerated by generate-bytecode-expectations. 3 # 4 5 --- 6 pool type: string 7 execute: yes 8 wrap: no 9 test function name: f 10 11 --- 12 snippet: " 13 var global = 1; 14 function f() { return ++global; } 15 f(); 16 " 17 frame size: 0 18 parameter count: 1 19 bytecode array length: 8 20 bytecodes: [ 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 ] 27 constant pool: [ 28 "global", 29 ] 30 handlers: [ 31 ] 32 33 --- 34 snippet: " 35 var global = 1; 36 function f() { return global--; } 37 f(); 38 " 39 frame size: 1 40 parameter count: 1 41 bytecode array length: 13 42 bytecodes: [ 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 ] 52 constant pool: [ 53 "global", 54 ] 55 handlers: [ 56 ] 57 58 --- 59 snippet: " 60 unallocated = 1; 61 function f() { 'use strict'; return --unallocated; } 62 f(); 63 " 64 frame size: 0 65 parameter count: 1 66 bytecode array length: 8 67 bytecodes: [ 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 ] 74 constant pool: [ 75 "unallocated", 76 ] 77 handlers: [ 78 ] 79 80 --- 81 snippet: " 82 unallocated = 1; 83 function f() { return unallocated++; } 84 f(); 85 " 86 frame size: 1 87 parameter count: 1 88 bytecode array length: 13 89 bytecodes: [ 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 ] 99 constant pool: [ 100 "unallocated", 101 ] 102 handlers: [ 103 ] 104 105