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