OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations |
| 3 # |
| 4 |
| 5 --- |
| 6 pool type: string |
| 7 execute: yes |
| 8 wrap: no |
| 9 test function name: f |
| 10 |
| 11 --- |
| 12 snippet: " |
| 13 var f;var x = 1;function f1() { eval(\"function t() {return x; }; f =
t; f();\");}f1(); |
| 14 " |
| 15 frame size: 0 |
| 16 parameter count: 1 |
| 17 bytecodes: [ |
| 18 B(StackCheck), |
| 19 B(LdaLookupSlot), U8(0), |
| 20 B(Return), |
| 21 ] |
| 22 constant pool: [ |
| 23 "x", |
| 24 ] |
| 25 handlers: [ |
| 26 ] |
| 27 |
| 28 --- |
| 29 snippet: " |
| 30 var f;var x = 1;function f1() { eval(\"function t() {x = 10; }; f = t;
f();\");}f1(); |
| 31 " |
| 32 frame size: 0 |
| 33 parameter count: 1 |
| 34 bytecodes: [ |
| 35 B(StackCheck), |
| 36 B(LdaSmi8), U8(10), |
| 37 B(StaLookupSlotSloppy), U8(0), |
| 38 B(LdaUndefined), |
| 39 B(Return), |
| 40 ] |
| 41 constant pool: [ |
| 42 "x", |
| 43 ] |
| 44 handlers: [ |
| 45 ] |
| 46 |
| 47 --- |
| 48 snippet: " |
| 49 var f;var x = 1;function f1() { eval(\"function t() {'use strict'; x = 10;
}; f = t; f();\");}f1(); |
| 50 " |
| 51 frame size: 0 |
| 52 parameter count: 1 |
| 53 bytecodes: [ |
| 54 B(StackCheck), |
| 55 B(LdaSmi8), U8(10), |
| 56 B(StaLookupSlotStrict), U8(0), |
| 57 B(LdaUndefined), |
| 58 B(Return), |
| 59 ] |
| 60 constant pool: [ |
| 61 "x", |
| 62 ] |
| 63 handlers: [ |
| 64 ] |
| 65 |
| 66 --- |
| 67 snippet: " |
| 68 var f;var x = 1;function f1() { eval(\"function t() {return typeof x;
}; f = t; f();\");}f1(); |
| 69 " |
| 70 frame size: 0 |
| 71 parameter count: 1 |
| 72 bytecodes: [ |
| 73 B(StackCheck), |
| 74 B(LdaLookupSlotInsideTypeof), U8(0), |
| 75 B(TypeOf), |
| 76 B(Return), |
| 77 ] |
| 78 constant pool: [ |
| 79 "x", |
| 80 ] |
| 81 handlers: [ |
| 82 ] |
| 83 |
OLD | NEW |