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: mixed | |
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 function f(arg1) { return function() { arg1 = 2; }; } | 12 function f(arg1) { return function() { arg1 = 2; }; } |
14 f(); | 13 f(); |
15 " | 14 " |
16 frame size: 1 | 15 frame size: 1 |
17 parameter count: 2 | 16 parameter count: 2 |
18 bytecode array length: 14 | 17 bytecode array length: 14 |
19 bytecodes: [ | 18 bytecodes: [ |
20 B(CreateFunctionContext), U8(1), | 19 B(CreateFunctionContext), U8(1), |
21 B(PushContext), R(0), | 20 B(PushContext), R(0), |
22 B(Ldar), R(arg0), | 21 B(Ldar), R(arg0), |
23 B(StaContextSlot), R(context), U8(4), | 22 B(StaContextSlot), R(context), U8(4), |
24 /* 10 E> */ B(StackCheck), | 23 /* 10 E> */ B(StackCheck), |
25 /* 19 S> */ B(CreateClosure), U8(0), U8(2), | 24 /* 19 S> */ B(CreateClosure), U8(0), U8(2), |
26 /* 52 S> */ B(Return), | 25 /* 52 S> */ B(Return), |
27 ] | 26 ] |
28 constant pool: [ | 27 constant pool: [ |
29 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 28 SHARED_FUNCTION_INFO_TYPE, |
30 ] | 29 ] |
31 handlers: [ | 30 handlers: [ |
32 ] | 31 ] |
33 | 32 |
34 --- | 33 --- |
35 snippet: " | 34 snippet: " |
36 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } | 35 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } |
37 f(); | 36 f(); |
38 " | 37 " |
39 frame size: 2 | 38 frame size: 2 |
40 parameter count: 2 | 39 parameter count: 2 |
41 bytecode array length: 19 | 40 bytecode array length: 19 |
42 bytecodes: [ | 41 bytecodes: [ |
43 B(CreateFunctionContext), U8(1), | 42 B(CreateFunctionContext), U8(1), |
44 B(PushContext), R(1), | 43 B(PushContext), R(1), |
45 B(Ldar), R(arg0), | 44 B(Ldar), R(arg0), |
46 B(StaContextSlot), R(context), U8(4), | 45 B(StaContextSlot), R(context), U8(4), |
47 /* 10 E> */ B(StackCheck), | 46 /* 10 E> */ B(StackCheck), |
48 /* 27 S> */ B(CreateClosure), U8(0), U8(2), | 47 /* 27 S> */ B(CreateClosure), U8(0), U8(2), |
49 B(Star), R(0), | 48 B(Star), R(0), |
50 /* 53 S> */ B(LdaContextSlot), R(context), U8(4), | 49 /* 53 S> */ B(LdaContextSlot), R(context), U8(4), |
51 /* 66 S> */ B(Return), | 50 /* 66 S> */ B(Return), |
52 ] | 51 ] |
53 constant pool: [ | 52 constant pool: [ |
54 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 53 SHARED_FUNCTION_INFO_TYPE, |
55 ] | 54 ] |
56 handlers: [ | 55 handlers: [ |
57 ] | 56 ] |
58 | 57 |
59 --- | 58 --- |
60 snippet: " | 59 snippet: " |
61 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } | 60 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } |
62 f(); | 61 f(); |
63 " | 62 " |
64 frame size: 1 | 63 frame size: 1 |
65 parameter count: 5 | 64 parameter count: 5 |
66 bytecode array length: 19 | 65 bytecode array length: 19 |
67 bytecodes: [ | 66 bytecodes: [ |
68 B(CreateFunctionContext), U8(2), | 67 B(CreateFunctionContext), U8(2), |
69 B(PushContext), R(0), | 68 B(PushContext), R(0), |
70 B(Ldar), R(arg0), | 69 B(Ldar), R(arg0), |
71 B(StaContextSlot), R(context), U8(5), | 70 B(StaContextSlot), R(context), U8(5), |
72 B(Ldar), R(arg2), | 71 B(Ldar), R(arg2), |
73 B(StaContextSlot), R(context), U8(4), | 72 B(StaContextSlot), R(context), U8(4), |
74 /* 10 E> */ B(StackCheck), | 73 /* 10 E> */ B(StackCheck), |
75 /* 29 S> */ B(CreateClosure), U8(0), U8(2), | 74 /* 29 S> */ B(CreateClosure), U8(0), U8(2), |
76 /* 61 S> */ B(Return), | 75 /* 61 S> */ B(Return), |
77 ] | 76 ] |
78 constant pool: [ | 77 constant pool: [ |
79 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 78 SHARED_FUNCTION_INFO_TYPE, |
80 ] | 79 ] |
81 handlers: [ | 80 handlers: [ |
82 ] | 81 ] |
83 | 82 |
84 --- | 83 --- |
85 snippet: " | 84 snippet: " |
86 function f() { var self = this; return function() { self = 2; }; } | 85 function f() { var self = this; return function() { self = 2; }; } |
87 f(); | 86 f(); |
88 " | 87 " |
89 frame size: 1 | 88 frame size: 1 |
90 parameter count: 1 | 89 parameter count: 1 |
91 bytecode array length: 14 | 90 bytecode array length: 14 |
92 bytecodes: [ | 91 bytecodes: [ |
93 B(CreateFunctionContext), U8(1), | 92 B(CreateFunctionContext), U8(1), |
94 B(PushContext), R(0), | 93 B(PushContext), R(0), |
95 /* 10 E> */ B(StackCheck), | 94 /* 10 E> */ B(StackCheck), |
96 /* 26 S> */ B(Ldar), R(this), | 95 /* 26 S> */ B(Ldar), R(this), |
97 /* 26 E> */ B(StaContextSlot), R(context), U8(4), | 96 /* 26 E> */ B(StaContextSlot), R(context), U8(4), |
98 /* 32 S> */ B(CreateClosure), U8(0), U8(2), | 97 /* 32 S> */ B(CreateClosure), U8(0), U8(2), |
99 /* 65 S> */ B(Return), | 98 /* 65 S> */ B(Return), |
100 ] | 99 ] |
101 constant pool: [ | 100 constant pool: [ |
102 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 101 SHARED_FUNCTION_INFO_TYPE, |
103 ] | 102 ] |
104 handlers: [ | 103 handlers: [ |
105 ] | 104 ] |
106 | 105 |
OLD | NEW |