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