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