| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: yes | 6 wrap: yes |
| 7 | 7 |
| 8 --- | 8 --- |
| 9 snippet: " | 9 snippet: " |
| 10 return \"This is a string\"; | 10 return \"This is a string\"; |
| 11 " | 11 " |
| 12 frame size: 0 | 12 frame size: 0 |
| 13 parameter count: 1 | 13 parameter count: 1 |
| 14 bytecode array length: 4 | 14 bytecode array length: 4 |
| 15 bytecodes: [ | 15 bytecodes: [ |
| 16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
| 17 /* 34 S> */ B(LdaConstant), U8(0), | 17 /* 34 S> */ B(LdaConstant), U8(0), |
| 18 /* 61 S> */ B(Return), | 18 /* 61 S> */ B(Return), |
| 19 ] | 19 ] |
| 20 constant pool: [ | 20 constant pool: [ |
| 21 ONE_BYTE_INTERNALIZED_STRING_TYPE ["This is a string"], | 21 ONE_BYTE_INTERNALIZED_STRING_TYPE ["This is a string"], |
| 22 ] | 22 ] |
| 23 handlers: [ | 23 handlers: [ |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 --- | 26 --- |
| 27 snippet: " | 27 snippet: " |
| 28 var a = \"First string\"; return \"Second string\"; | 28 var a = \"First string\"; return \"Second string\"; |
| 29 " | 29 " |
| 30 frame size: 1 | 30 frame size: 2 |
| 31 parameter count: 1 | 31 parameter count: 1 |
| 32 bytecode array length: 8 | 32 bytecode array length: 12 |
| 33 bytecodes: [ | 33 bytecodes: [ |
| 34 /* 30 E> */ B(StackCheck), | 34 /* 30 E> */ B(StackCheck), |
| 35 /* 42 S> */ B(LdaConstant), U8(0), | 35 /* 42 S> */ B(LdaConstant), U8(0), |
| 36 B(Star), R(1), |
| 37 B(LdaConstant), U8(1), |
| 36 B(Star), R(0), | 38 B(Star), R(0), |
| 37 /* 58 S> */ B(LdaConstant), U8(1), | 39 /* 58 S> */ B(LdaConstant), U8(2), |
| 38 /* 82 S> */ B(Return), | 40 /* 82 S> */ B(Return), |
| 39 ] | 41 ] |
| 40 constant pool: [ | 42 constant pool: [ |
| 43 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 41 ONE_BYTE_INTERNALIZED_STRING_TYPE ["First string"], | 44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["First string"], |
| 42 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Second string"], | 45 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Second string"], |
| 43 ] | 46 ] |
| 44 handlers: [ | 47 handlers: [ |
| 45 ] | 48 ] |
| 46 | 49 |
| 47 --- | 50 --- |
| 48 snippet: " | 51 snippet: " |
| 49 var a = \"Same string\"; return \"Same string\"; | 52 var a = \"Same string\"; return \"Same string\"; |
| 50 " | 53 " |
| 51 frame size: 1 | 54 frame size: 2 |
| 52 parameter count: 1 | 55 parameter count: 1 |
| 53 bytecode array length: 8 | 56 bytecode array length: 12 |
| 54 bytecodes: [ | 57 bytecodes: [ |
| 55 /* 30 E> */ B(StackCheck), | 58 /* 30 E> */ B(StackCheck), |
| 56 /* 42 S> */ B(LdaConstant), U8(0), | 59 /* 42 S> */ B(LdaConstant), U8(0), |
| 60 B(Star), R(1), |
| 61 B(LdaConstant), U8(1), |
| 57 B(Star), R(0), | 62 B(Star), R(0), |
| 58 /* 57 S> */ B(LdaConstant), U8(0), | 63 /* 57 S> */ B(LdaConstant), U8(1), |
| 59 /* 79 S> */ B(Return), | 64 /* 79 S> */ B(Return), |
| 60 ] | 65 ] |
| 61 constant pool: [ | 66 constant pool: [ |
| 67 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 62 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Same string"], | 68 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Same string"], |
| 63 ] | 69 ] |
| 64 handlers: [ | 70 handlers: [ |
| 65 ] | 71 ] |
| 66 | 72 |
| OLD | NEW |