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 return [ 1, 2 ]; 13 " 14 frame size: 0 15 parameter count: 1 16 bytecode array length: 6 17 bytecodes: [ 18 /* 30 E> */ B(StackCheck), 19 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 20 /* 51 S> */ B(Return), 21 ] 22 constant pool: [ 23 InstanceType::FIXED_ARRAY_TYPE, 24 ] 25 handlers: [ 26 ] 27 28 --- 29 snippet: " 30 var a = 1; return [ a, a + 1 ]; 31 " 32 frame size: 3 33 parameter count: 1 34 bytecode array length: 35 35 bytecodes: [ 36 /* 30 E> */ B(StackCheck), 37 /* 42 S> */ B(LdaSmi), U8(1), 38 B(Star), R(0), 39 /* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 40 B(Star), R(2), 41 B(LdaZero), 42 B(Star), R(1), 43 B(Ldar), R(0), 44 /* 54 E> */ B(StaKeyedPropertySloppy), R(2), R(1), U8(1), 45 B(LdaSmi), U8(1), 46 B(Star), R(1), 47 B(LdaSmi), U8(1), 48 /* 57 E> */ B(Add), R(0), 49 B(StaKeyedPropertySloppy), R(2), R(1), U8(1), 50 B(Ldar), R(2), 51 /* 66 S> */ B(Return), 52 ] 53 constant pool: [ 54 InstanceType::FIXED_ARRAY_TYPE, 55 ] 56 handlers: [ 57 ] 58 59 --- 60 snippet: " 61 return [ [ 1, 2 ], [ 3 ] ]; 62 " 63 frame size: 0 64 parameter count: 1 65 bytecode array length: 6 66 bytecodes: [ 67 /* 30 E> */ B(StackCheck), 68 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(2), 69 /* 62 S> */ B(Return), 70 ] 71 constant pool: [ 72 InstanceType::FIXED_ARRAY_TYPE, 73 ] 74 handlers: [ 75 ] 76 77 --- 78 snippet: " 79 var a = 1; return [ [ a, 2 ], [ a + 2 ] ]; 80 " 81 frame size: 5 82 parameter count: 1 83 bytecode array length: 65 84 bytecodes: [ 85 /* 30 E> */ B(StackCheck), 86 /* 42 S> */ B(LdaSmi), U8(1), 87 B(Star), R(0), 88 /* 45 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(2), 89 B(Star), R(2), 90 B(LdaZero), 91 B(Star), R(1), 92 B(CreateArrayLiteral), U8(1), U8(0), U8(3), 93 B(Star), R(4), 94 B(LdaZero), 95 B(Star), R(3), 96 B(Ldar), R(0), 97 /* 56 E> */ B(StaKeyedPropertySloppy), R(4), R(3), U8(1), 98 B(Ldar), R(4), 99 B(StaKeyedPropertySloppy), R(2), R(1), U8(5), 100 B(LdaSmi), U8(1), 101 B(Star), R(1), 102 B(CreateArrayLiteral), U8(2), U8(1), U8(3), 103 B(Star), R(4), 104 B(LdaZero), 105 B(Star), R(3), 106 B(LdaSmi), U8(2), 107 /* 66 E> */ B(Add), R(0), 108 B(StaKeyedPropertySloppy), R(4), R(3), U8(3), 109 B(Ldar), R(4), 110 B(StaKeyedPropertySloppy), R(2), R(1), U8(5), 111 B(Ldar), R(2), 112 /* 77 S> */ B(Return), 113 ] 114 constant pool: [ 115 InstanceType::FIXED_ARRAY_TYPE, 116 InstanceType::FIXED_ARRAY_TYPE, 117 InstanceType::FIXED_ARRAY_TYPE, 118 ] 119 handlers: [ 120 ] 121 122