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: number | 6 pool type: number |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 handlers: [ | 51 handlers: [ |
52 ] | 52 ] |
53 | 53 |
54 --- | 54 --- |
55 snippet: " | 55 snippet: " |
56 function f(a, ...restArgs) { return restArgs[0]; } | 56 function f(a, ...restArgs) { return restArgs[0]; } |
57 f(); | 57 f(); |
58 " | 58 " |
59 frame size: 2 | 59 frame size: 2 |
60 parameter count: 2 | 60 parameter count: 2 |
61 bytecode array length: 16 | 61 bytecode array length: 15 |
62 bytecodes: [ | 62 bytecodes: [ |
63 B(CreateRestParameter), | 63 B(CreateRestParameter), |
64 B(Star), R(0), | 64 B(Star), R(0), |
65 B(LdaTheHole), | 65 B(LdaTheHole), |
66 B(Star), R(1), | 66 B(Star), R(1), |
67 /* 10 E> */ B(StackCheck), | 67 /* 10 E> */ B(StackCheck), |
68 B(Mov), R(arg0), R(1), | 68 B(Mov), R(arg0), R(1), |
69 /* 29 S> */ B(Nop), | 69 /* 29 S> */ B(LdaZero), |
70 /* 44 E> */ B(LdaZero), | 70 /* 44 E> */ B(LdaKeyedProperty), R(0), U8(1), |
71 B(LdaKeyedProperty), R(0), U8(1), | |
72 /* 49 S> */ B(Return), | 71 /* 49 S> */ B(Return), |
73 ] | 72 ] |
74 constant pool: [ | 73 constant pool: [ |
75 ] | 74 ] |
76 handlers: [ | 75 handlers: [ |
77 ] | 76 ] |
78 | 77 |
79 --- | 78 --- |
80 snippet: " | 79 snippet: " |
81 function f(a, ...restArgs) { return restArgs[0] + arguments[0]; } | 80 function f(a, ...restArgs) { return restArgs[0] + arguments[0]; } |
82 f(); | 81 f(); |
83 " | 82 " |
84 frame size: 5 | 83 frame size: 5 |
85 parameter count: 2 | 84 parameter count: 2 |
86 bytecode array length: 29 | 85 bytecode array length: 25 |
87 bytecodes: [ | 86 bytecodes: [ |
88 B(CreateUnmappedArguments), | 87 B(CreateUnmappedArguments), |
89 B(Star), R(0), | 88 B(Star), R(0), |
90 B(CreateRestParameter), | 89 B(CreateRestParameter), |
91 B(Star), R(1), | 90 B(Star), R(1), |
92 B(LdaTheHole), | 91 B(LdaTheHole), |
93 B(Star), R(2), | 92 B(Star), R(2), |
94 /* 10 E> */ B(StackCheck), | 93 /* 10 E> */ B(StackCheck), |
95 B(Mov), R(arg0), R(2), | 94 B(Mov), R(arg0), R(2), |
96 /* 29 S> */ B(Nop), | 95 /* 29 S> */ B(LdaZero), |
97 /* 44 E> */ B(LdaZero), | 96 /* 44 E> */ B(LdrKeyedProperty), R(1), U8(1), R(4), |
98 B(LdrKeyedProperty), R(1), U8(1), R(4), | 97 B(LdaZero), |
99 B(Ldar), R(4), | 98 /* 59 E> */ B(LdaKeyedProperty), R(0), U8(3), |
100 /* 50 E> */ B(Nop), | |
101 /* 59 E> */ B(LdaZero), | |
102 B(LdaKeyedProperty), R(0), U8(3), | |
103 B(Add), R(4), | 99 B(Add), R(4), |
104 /* 64 S> */ B(Return), | 100 /* 64 S> */ B(Return), |
105 ] | 101 ] |
106 constant pool: [ | 102 constant pool: [ |
107 ] | 103 ] |
108 handlers: [ | 104 handlers: [ |
109 ] | 105 ] |
110 | 106 |
OLD | NEW |