1 # 2 # Autogenerated by generate-bytecode-expectations. 3 # 4 5 --- 6 pool type: mixed 7 execute: yes 8 wrap: yes 9 10 --- 11 snippet: " 12 var a = 1; a += 2; 13 " 14 frame size: 2 15 parameter count: 1 16 bytecode array length: 16 17 bytecodes: [ 18 /* 30 E> */ B(StackCheck), 19 /* 42 S> */ B(LdaSmi), U8(1), 20 B(Star), R(0), 21 /* 45 S> */ B(LdaSmi), U8(2), 22 B(Add), R(0), 23 B(Mov), R(0), R(1), 24 B(Star), R(0), 25 B(LdaUndefined), 26 /* 53 S> */ B(Return), 27 ] 28 constant pool: [ 29 ] 30 handlers: [ 31 ] 32 33 --- 34 snippet: " 35 var a = 1; a /= 2; 36 " 37 frame size: 2 38 parameter count: 1 39 bytecode array length: 16 40 bytecodes: [ 41 /* 30 E> */ B(StackCheck), 42 /* 42 S> */ B(LdaSmi), U8(1), 43 B(Star), R(0), 44 /* 45 S> */ B(LdaSmi), U8(2), 45 B(Div), R(0), 46 B(Mov), R(0), R(1), 47 B(Star), R(0), 48 B(LdaUndefined), 49 /* 53 S> */ B(Return), 50 ] 51 constant pool: [ 52 ] 53 handlers: [ 54 ] 55 56 --- 57 snippet: " 58 var a = { val: 2 }; a.name *= 2; 59 " 60 frame size: 3 61 parameter count: 1 62 bytecode array length: 24 63 bytecodes: [ 64 /* 30 E> */ B(StackCheck), 65 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 66 B(Star), R(1), 67 B(Star), R(0), 68 /* 54 S> */ B(LdrNamedProperty), R(0), U8(1), U8(1), R(2), 69 B(LdaSmi), U8(2), 70 B(Mul), R(2), 71 /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), 72 B(LdaUndefined), 73 /* 67 S> */ B(Return), 74 ] 75 constant pool: [ 76 InstanceType::FIXED_ARRAY_TYPE, 77 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 78 ] 79 handlers: [ 80 ] 81 82 --- 83 snippet: " 84 var a = { 1: 2 }; a[1] ^= 2; 85 " 86 frame size: 4 87 parameter count: 1 88 bytecode array length: 27 89 bytecodes: [ 90 /* 30 E> */ B(StackCheck), 91 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 92 B(Star), R(1), 93 B(Star), R(0), 94 /* 52 S> */ B(LdaSmi), U8(1), 95 B(Star), R(2), 96 B(LdrKeyedProperty), R(0), U8(1), R(3), 97 B(LdaSmi), U8(2), 98 B(BitwiseXor), R(3), 99 /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(3), 100 B(LdaUndefined), 101 /* 63 S> */ B(Return), 102 ] 103 constant pool: [ 104 InstanceType::FIXED_ARRAY_TYPE, 105 ] 106 handlers: [ 107 ] 108 109 --- 110 snippet: " 111 var a = 1; (function f() { return a; }); a |= 24; 112 " 113 frame size: 2 114 parameter count: 1 115 bytecode array length: 29 116 bytecodes: [ 117 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 118 B(PushContext), R(0), 119 /* 30 E> */ B(StackCheck), 120 /* 42 S> */ B(LdaSmi), U8(1), 121 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 122 /* 45 S> */ B(CreateClosure), U8(0), U8(0), 123 /* 75 S> */ B(LdrContextSlot), R(context), U8(4), R(1), 124 B(LdaSmi), U8(24), 125 B(BitwiseOr), R(1), 126 /* 77 E> */ B(StaContextSlot), R(context), U8(4), 127 B(LdaUndefined), 128 /* 84 S> */ B(Return), 129 ] 130 constant pool: [ 131 InstanceType::SHARED_FUNCTION_INFO_TYPE, 132 ] 133 handlers: [ 134 ] 135 136