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 | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var f; | 13 var f; |
14 var x = 1; | 14 var x = 1; |
15 function f1() { | 15 function f1() { |
16 eval(\"function t() { return x; }; f = t; f();\"); | 16 eval(\"function t() { return x; }; f = t; f();\"); |
17 } | 17 } |
18 f1(); | 18 f1(); |
19 " | 19 " |
20 frame size: 0 | 20 frame size: 0 |
21 parameter count: 1 | 21 parameter count: 1 |
22 bytecode array length: 4 | 22 bytecode array length: 4 |
23 bytecodes: [ | 23 bytecodes: [ |
24 B(StackCheck), | 24 /* 10 E> */ B(StackCheck), |
25 B(LdaLookupSlot), U8(0), | 25 /* 15 S> */ B(LdaLookupSlot), U8(0), |
26 B(Return), | 26 /* 25 S> */ B(Return), |
27 ] | 27 ] |
28 constant pool: [ | 28 constant pool: [ |
29 "x", | 29 "x", |
30 ] | 30 ] |
31 handlers: [ | 31 handlers: [ |
32 ] | 32 ] |
33 | 33 |
34 --- | 34 --- |
35 snippet: " | 35 snippet: " |
36 var f; | 36 var f; |
37 var x = 1; | 37 var x = 1; |
38 function f1() { | 38 function f1() { |
39 eval(\"function t() { x = 10; }; f = t; f();\"); | 39 eval(\"function t() { x = 10; }; f = t; f();\"); |
40 } | 40 } |
41 f1(); | 41 f1(); |
42 " | 42 " |
43 frame size: 0 | 43 frame size: 0 |
44 parameter count: 1 | 44 parameter count: 1 |
45 bytecode array length: 7 | 45 bytecode array length: 7 |
46 bytecodes: [ | 46 bytecodes: [ |
47 B(StackCheck), | 47 /* 10 E> */ B(StackCheck), |
48 B(LdaSmi), U8(10), | 48 /* 15 S> */ B(LdaSmi), U8(10), |
49 B(StaLookupSlotSloppy), U8(0), | 49 /* 17 E> */ B(StaLookupSlotSloppy), U8(0), |
50 B(LdaUndefined), | 50 B(LdaUndefined), |
51 B(Return), | 51 /* 23 S> */ B(Return), |
52 ] | 52 ] |
53 constant pool: [ | 53 constant pool: [ |
54 "x", | 54 "x", |
55 ] | 55 ] |
56 handlers: [ | 56 handlers: [ |
57 ] | 57 ] |
58 | 58 |
59 --- | 59 --- |
60 snippet: " | 60 snippet: " |
61 var f; | 61 var f; |
62 var x = 1; | 62 var x = 1; |
63 function f1() { | 63 function f1() { |
64 eval(\"function t() { 'use strict'; x = 10; }; f = t; f();\"); | 64 eval(\"function t() { 'use strict'; x = 10; }; f = t; f();\"); |
65 } | 65 } |
66 f1(); | 66 f1(); |
67 " | 67 " |
68 frame size: 0 | 68 frame size: 0 |
69 parameter count: 1 | 69 parameter count: 1 |
70 bytecode array length: 7 | 70 bytecode array length: 7 |
71 bytecodes: [ | 71 bytecodes: [ |
72 B(StackCheck), | 72 /* 10 E> */ B(StackCheck), |
73 B(LdaSmi), U8(10), | 73 /* 29 S> */ B(LdaSmi), U8(10), |
74 B(StaLookupSlotStrict), U8(0), | 74 /* 31 E> */ B(StaLookupSlotStrict), U8(0), |
75 B(LdaUndefined), | 75 B(LdaUndefined), |
76 B(Return), | 76 /* 37 S> */ B(Return), |
77 ] | 77 ] |
78 constant pool: [ | 78 constant pool: [ |
79 "x", | 79 "x", |
80 ] | 80 ] |
81 handlers: [ | 81 handlers: [ |
82 ] | 82 ] |
83 | 83 |
84 --- | 84 --- |
85 snippet: " | 85 snippet: " |
86 var f; | 86 var f; |
87 var x = 1; | 87 var x = 1; |
88 function f1() { | 88 function f1() { |
89 eval(\"function t() { return typeof x; }; f = t; f();\"); | 89 eval(\"function t() { return typeof x; }; f = t; f();\"); |
90 } | 90 } |
91 f1(); | 91 f1(); |
92 " | 92 " |
93 frame size: 0 | 93 frame size: 0 |
94 parameter count: 1 | 94 parameter count: 1 |
95 bytecode array length: 5 | 95 bytecode array length: 5 |
96 bytecodes: [ | 96 bytecodes: [ |
97 B(StackCheck), | 97 /* 10 E> */ B(StackCheck), |
98 B(LdaLookupSlotInsideTypeof), U8(0), | 98 /* 15 S> */ B(LdaLookupSlotInsideTypeof), U8(0), |
99 B(TypeOf), | 99 B(TypeOf), |
100 B(Return), | 100 /* 32 S> */ B(Return), |
101 ] | 101 ] |
102 constant pool: [ | 102 constant pool: [ |
103 "x", | 103 "x", |
104 ] | 104 ] |
105 handlers: [ | 105 handlers: [ |
106 ] | 106 ] |
107 | 107 |
OLD | NEW |