| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 pool type: mixed | 6 pool type: mixed |
| 7 execute: yes | 7 execute: yes |
| 8 wrap: yes | 8 wrap: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 snippet: " | 31 snippet: " |
| 32 var a = 1; return function() { a = 2; }; | 32 var a = 1; return function() { a = 2; }; |
| 33 " | 33 " |
| 34 frame size: 1 | 34 frame size: 1 |
| 35 parameter count: 1 | 35 parameter count: 1 |
| 36 bytecode array length: 17 | 36 bytecode array length: 17 |
| 37 bytecodes: [ | 37 bytecodes: [ |
| 38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 39 B(PushContext), R(0), | 39 B(PushContext), R(0), |
| 40 B(StackCheck), | 40 B(StackCheck), |
| 41 B(LdaSmi8), U8(1), | 41 B(LdaSmi), U8(1), |
| 42 B(StaContextSlot), R(context), U8(4), | 42 B(StaContextSlot), R(context), U8(4), |
| 43 B(CreateClosure), U8(0), U8(0), | 43 B(CreateClosure), U8(0), U8(0), |
| 44 B(Return), | 44 B(Return), |
| 45 ] | 45 ] |
| 46 constant pool: [ | 46 constant pool: [ |
| 47 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 47 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 48 ] | 48 ] |
| 49 handlers: [ | 49 handlers: [ |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 --- | 52 --- |
| 53 snippet: " | 53 snippet: " |
| 54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; | 54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; |
| 55 " | 55 " |
| 56 frame size: 1 | 56 frame size: 1 |
| 57 parameter count: 1 | 57 parameter count: 1 |
| 58 bytecode array length: 22 | 58 bytecode array length: 22 |
| 59 bytecodes: [ | 59 bytecodes: [ |
| 60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 61 B(PushContext), R(0), | 61 B(PushContext), R(0), |
| 62 B(StackCheck), | 62 B(StackCheck), |
| 63 B(LdaSmi8), U8(1), | 63 B(LdaSmi), U8(1), |
| 64 B(StaContextSlot), R(context), U8(4), | 64 B(StaContextSlot), R(context), U8(4), |
| 65 B(LdaSmi8), U8(2), | 65 B(LdaSmi), U8(2), |
| 66 B(StaContextSlot), R(context), U8(5), | 66 B(StaContextSlot), R(context), U8(5), |
| 67 B(CreateClosure), U8(0), U8(0), | 67 B(CreateClosure), U8(0), U8(0), |
| 68 B(Return), | 68 B(Return), |
| 69 ] | 69 ] |
| 70 constant pool: [ | 70 constant pool: [ |
| 71 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 71 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 72 ] | 72 ] |
| 73 handlers: [ | 73 handlers: [ |
| 74 ] | 74 ] |
| 75 | 75 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 106 " | 106 " |
| 107 frame size: 4 | 107 frame size: 4 |
| 108 parameter count: 1 | 108 parameter count: 1 |
| 109 bytecode array length: 47 | 109 bytecode array length: 47 |
| 110 bytecodes: [ | 110 bytecodes: [ |
| 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 112 B(PushContext), R(0), | 112 B(PushContext), R(0), |
| 113 B(LdaTheHole), | 113 B(LdaTheHole), |
| 114 B(StaContextSlot), R(context), U8(4), | 114 B(StaContextSlot), R(context), U8(4), |
| 115 B(StackCheck), | 115 B(StackCheck), |
| 116 B(LdaSmi8), U8(1), | 116 B(LdaSmi), U8(1), |
| 117 B(StaContextSlot), R(context), U8(4), | 117 B(StaContextSlot), R(context), U8(4), |
| 118 B(LdaConstant), U8(0), | 118 B(LdaConstant), U8(0), |
| 119 B(Star), R(2), | 119 B(Star), R(2), |
| 120 B(Ldar), R(closure), | 120 B(Ldar), R(closure), |
| 121 B(Star), R(3), | 121 B(Star), R(3), |
| 122 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), | 122 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), |
| 123 B(PushContext), R(1), | 123 B(PushContext), R(1), |
| 124 B(LdaTheHole), | 124 B(LdaTheHole), |
| 125 B(StaContextSlot), R(context), U8(4), | 125 B(StaContextSlot), R(context), U8(4), |
| 126 B(LdaSmi8), U8(2), | 126 B(LdaSmi), U8(2), |
| 127 B(StaContextSlot), R(context), U8(4), | 127 B(StaContextSlot), R(context), U8(4), |
| 128 B(CreateClosure), U8(1), U8(0), | 128 B(CreateClosure), U8(1), U8(0), |
| 129 B(PopContext), R(0), | 129 B(PopContext), R(0), |
| 130 B(Return), | 130 B(Return), |
| 131 ] | 131 ] |
| 132 constant pool: [ | 132 constant pool: [ |
| 133 InstanceType::FIXED_ARRAY_TYPE, | 133 InstanceType::FIXED_ARRAY_TYPE, |
| 134 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 134 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 135 ] | 135 ] |
| 136 handlers: [ | 136 handlers: [ |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 var a245 = 0; | 387 var a245 = 0; |
| 388 var a246 = 0; | 388 var a246 = 0; |
| 389 var a247 = 0; | 389 var a247 = 0; |
| 390 var a248 = 0; | 390 var a248 = 0; |
| 391 eval(); | 391 eval(); |
| 392 var b = 100; | 392 var b = 100; |
| 393 return b | 393 return b |
| 394 " | 394 " |
| 395 frame size: 3 | 395 frame size: 3 |
| 396 parameter count: 1 | 396 parameter count: 1 |
| 397 bytecode array length: 1042 | 397 bytecode array length: 1046 |
| 398 bytecodes: [ | 398 bytecodes: [ |
| 399 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 399 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 400 B(PushContext), R(0), | 400 B(PushContext), R(0), |
| 401 B(Ldar), R(this), | 401 B(Ldar), R(this), |
| 402 B(StaContextSlot), R(context), U8(4), | 402 B(StaContextSlot), R(context), U8(4), |
| 403 B(CreateUnmappedArguments), | 403 B(CreateUnmappedArguments), |
| 404 B(StaContextSlot), R(context), U8(5), | 404 B(StaContextSlot), R(context), U8(5), |
| 405 B(Ldar), R(new_target), | 405 B(Ldar), R(new_target), |
| 406 B(StaContextSlot), R(context), U8(6), | 406 B(StaContextSlot), R(context), U8(6), |
| 407 B(StackCheck), | 407 B(StackCheck), |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 B(StaContextSlot), R(context), U8(253), | 901 B(StaContextSlot), R(context), U8(253), |
| 902 B(LdaZero), | 902 B(LdaZero), |
| 903 B(StaContextSlot), R(context), U8(254), | 903 B(StaContextSlot), R(context), U8(254), |
| 904 B(LdaZero), | 904 B(LdaZero), |
| 905 B(StaContextSlot), R(context), U8(255), | 905 B(StaContextSlot), R(context), U8(255), |
| 906 B(LdaUndefined), | 906 B(LdaUndefined), |
| 907 B(Star), R(2), | 907 B(Star), R(2), |
| 908 B(LdaGlobal), U8(0), U8(1), | 908 B(LdaGlobal), U8(0), U8(1), |
| 909 B(Star), R(1), | 909 B(Star), R(1), |
| 910 B(Call), R(1), R(2), U8(1), U8(0), | 910 B(Call), R(1), R(2), U8(1), U8(0), |
| 911 B(LdaSmi8), U8(100), | 911 B(LdaSmi), U8(100), |
| 912 B(StaContextSlotWide), R(context), U16(256), | 912 B(Wide), B(StaContextSlot), R16(context), U16(256), |
| 913 B(LdaContextSlotWide), R(context), U16(256), | 913 B(Wide), B(LdaContextSlot), R16(context), U16(256), |
| 914 B(Return), | 914 B(Return), |
| 915 ] | 915 ] |
| 916 constant pool: [ | 916 constant pool: [ |
| 917 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 917 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 918 ] | 918 ] |
| 919 handlers: [ | 919 handlers: [ |
| 920 ] | 920 ] |
| 921 | 921 |
| OLD | NEW |