| 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 --- |
| 11 snippet: " | 11 snippet: " |
| 12 var a; return function() { a = 1; }; | 12 var a; return function() { a = 1; }; |
| 13 " | 13 " |
| 14 frame size: 1 | 14 frame size: 1 |
| 15 parameter count: 1 | 15 parameter count: 1 |
| 16 bytecode array length: 12 | 16 bytecode array length: 14 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 19 B(PushContext), R(0), | 19 B(PushContext), R(0), |
| 20 B(StackCheck), | 20 B(StackCheck), |
| 21 B(CreateClosure), U8(0), U8(0), | 21 B(CreateClosure), U8(0), U8(0), |
| 22 B(PopContext), R(0), |
| 22 B(Return), | 23 B(Return), |
| 23 ] | 24 ] |
| 24 constant pool: [ | 25 constant pool: [ |
| 25 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 26 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 26 ] | 27 ] |
| 27 handlers: [ | 28 handlers: [ |
| 28 ] | 29 ] |
| 29 | 30 |
| 30 --- | 31 --- |
| 31 snippet: " | 32 snippet: " |
| 32 var a = 1; return function() { a = 2; }; | 33 var a = 1; return function() { a = 2; }; |
| 33 " | 34 " |
| 34 frame size: 1 | 35 frame size: 1 |
| 35 parameter count: 1 | 36 parameter count: 1 |
| 36 bytecode array length: 17 | 37 bytecode array length: 19 |
| 37 bytecodes: [ | 38 bytecodes: [ |
| 38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 39 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 39 B(PushContext), R(0), | 40 B(PushContext), R(0), |
| 40 B(StackCheck), | 41 B(StackCheck), |
| 41 B(LdaSmi8), U8(1), | 42 B(LdaSmi8), U8(1), |
| 42 B(StaContextSlot), R(context), U8(4), | 43 B(StaContextSlot), R(context), U8(4), |
| 43 B(CreateClosure), U8(0), U8(0), | 44 B(CreateClosure), U8(0), U8(0), |
| 45 B(PopContext), R(0), |
| 44 B(Return), | 46 B(Return), |
| 45 ] | 47 ] |
| 46 constant pool: [ | 48 constant pool: [ |
| 47 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 49 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 48 ] | 50 ] |
| 49 handlers: [ | 51 handlers: [ |
| 50 ] | 52 ] |
| 51 | 53 |
| 52 --- | 54 --- |
| 53 snippet: " | 55 snippet: " |
| 54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; | 56 var a = 1; var b = 2; return function() { a = 2; b = 3 }; |
| 55 " | 57 " |
| 56 frame size: 1 | 58 frame size: 1 |
| 57 parameter count: 1 | 59 parameter count: 1 |
| 58 bytecode array length: 22 | 60 bytecode array length: 24 |
| 59 bytecodes: [ | 61 bytecodes: [ |
| 60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 62 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 61 B(PushContext), R(0), | 63 B(PushContext), R(0), |
| 62 B(StackCheck), | 64 B(StackCheck), |
| 63 B(LdaSmi8), U8(1), | 65 B(LdaSmi8), U8(1), |
| 64 B(StaContextSlot), R(context), U8(4), | 66 B(StaContextSlot), R(context), U8(4), |
| 65 B(LdaSmi8), U8(2), | 67 B(LdaSmi8), U8(2), |
| 66 B(StaContextSlot), R(context), U8(5), | 68 B(StaContextSlot), R(context), U8(5), |
| 67 B(CreateClosure), U8(0), U8(0), | 69 B(CreateClosure), U8(0), U8(0), |
| 70 B(PopContext), R(0), |
| 68 B(Return), | 71 B(Return), |
| 69 ] | 72 ] |
| 70 constant pool: [ | 73 constant pool: [ |
| 71 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 74 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 72 ] | 75 ] |
| 73 handlers: [ | 76 handlers: [ |
| 74 ] | 77 ] |
| 75 | 78 |
| 76 --- | 79 --- |
| 77 snippet: " | 80 snippet: " |
| 78 var a; (function() { a = 2; })(); return a; | 81 var a; (function() { a = 2; })(); return a; |
| 79 " | 82 " |
| 80 frame size: 3 | 83 frame size: 3 |
| 81 parameter count: 1 | 84 parameter count: 1 |
| 82 bytecode array length: 25 | 85 bytecode array length: 27 |
| 83 bytecodes: [ | 86 bytecodes: [ |
| 84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 87 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 85 B(PushContext), R(0), | 88 B(PushContext), R(0), |
| 86 B(StackCheck), | 89 B(StackCheck), |
| 87 B(LdaUndefined), | 90 B(LdaUndefined), |
| 88 B(Star), R(2), | 91 B(Star), R(2), |
| 89 B(CreateClosure), U8(0), U8(0), | 92 B(CreateClosure), U8(0), U8(0), |
| 90 B(Star), R(1), | 93 B(Star), R(1), |
| 91 B(Call), R(1), R(2), U8(1), U8(1), | 94 B(Call), R(1), R(2), U8(1), U8(1), |
| 92 B(LdaContextSlot), R(context), U8(4), | 95 B(LdaContextSlot), R(context), U8(4), |
| 96 B(PopContext), R(0), |
| 93 B(Return), | 97 B(Return), |
| 94 ] | 98 ] |
| 95 constant pool: [ | 99 constant pool: [ |
| 96 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 100 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 97 ] | 101 ] |
| 98 handlers: [ | 102 handlers: [ |
| 99 ] | 103 ] |
| 100 | 104 |
| 101 --- | 105 --- |
| 102 snippet: " | 106 snippet: " |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 var a245 = 0; | 391 var a245 = 0; |
| 388 var a246 = 0; | 392 var a246 = 0; |
| 389 var a247 = 0; | 393 var a247 = 0; |
| 390 var a248 = 0; | 394 var a248 = 0; |
| 391 eval(); | 395 eval(); |
| 392 var b = 100; | 396 var b = 100; |
| 393 return b | 397 return b |
| 394 " | 398 " |
| 395 frame size: 3 | 399 frame size: 3 |
| 396 parameter count: 1 | 400 parameter count: 1 |
| 397 bytecode array length: 1042 | 401 bytecode array length: 1044 |
| 398 bytecodes: [ | 402 bytecodes: [ |
| 399 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 403 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 400 B(PushContext), R(0), | 404 B(PushContext), R(0), |
| 401 B(Ldar), R(this), | 405 B(Ldar), R(this), |
| 402 B(StaContextSlot), R(context), U8(4), | 406 B(StaContextSlot), R(context), U8(4), |
| 403 B(CreateUnmappedArguments), | 407 B(CreateUnmappedArguments), |
| 404 B(StaContextSlot), R(context), U8(5), | 408 B(StaContextSlot), R(context), U8(5), |
| 405 B(Ldar), R(new_target), | 409 B(Ldar), R(new_target), |
| 406 B(StaContextSlot), R(context), U8(6), | 410 B(StaContextSlot), R(context), U8(6), |
| 407 B(StackCheck), | 411 B(StackCheck), |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 B(LdaZero), | 908 B(LdaZero), |
| 905 B(StaContextSlot), R(context), U8(255), | 909 B(StaContextSlot), R(context), U8(255), |
| 906 B(LdaUndefined), | 910 B(LdaUndefined), |
| 907 B(Star), R(2), | 911 B(Star), R(2), |
| 908 B(LdaGlobal), U8(0), U8(1), | 912 B(LdaGlobal), U8(0), U8(1), |
| 909 B(Star), R(1), | 913 B(Star), R(1), |
| 910 B(Call), R(1), R(2), U8(1), U8(0), | 914 B(Call), R(1), R(2), U8(1), U8(0), |
| 911 B(LdaSmi8), U8(100), | 915 B(LdaSmi8), U8(100), |
| 912 B(StaContextSlotWide), R(context), U16(256), | 916 B(StaContextSlotWide), R(context), U16(256), |
| 913 B(LdaContextSlotWide), R(context), U16(256), | 917 B(LdaContextSlotWide), R(context), U16(256), |
| 918 B(PopContext), R(0), |
| 914 B(Return), | 919 B(Return), |
| 915 ] | 920 ] |
| 916 constant pool: [ | 921 constant pool: [ |
| 917 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 922 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 918 ] | 923 ] |
| 919 handlers: [ | 924 handlers: [ |
| 920 ] | 925 ] |
| 921 | 926 |
| OLD | NEW |