Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CreateArguments.golden

Issue 1768123002: [Interpreter] Fixes a bug when popping context to correct level on break/continue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 handlers: [ 71 handlers: [
72 ] 72 ]
73 73
74 --- 74 ---
75 snippet: " 75 snippet: "
76 function f(a) { return arguments[0]; } 76 function f(a) { return arguments[0]; }
77 f(); 77 f();
78 " 78 "
79 frame size: 3 79 frame size: 3
80 parameter count: 2 80 parameter count: 2
81 bytecode array length: 25 81 bytecode array length: 27
82 bytecodes: [ 82 bytecodes: [
83 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 83 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
84 B(PushContext), R(1), 84 B(PushContext), R(1),
85 B(Ldar), R(arg0), 85 B(Ldar), R(arg0),
86 B(StaContextSlot), R(context), U8(4), 86 B(StaContextSlot), R(context), U8(4),
87 B(CreateMappedArguments), 87 B(CreateMappedArguments),
88 B(Star), R(0), 88 B(Star), R(0),
89 B(StackCheck), 89 B(StackCheck),
90 B(Ldar), R(0), 90 B(Ldar), R(0),
91 B(Star), R(2), 91 B(Star), R(2),
92 B(LdaZero), 92 B(LdaZero),
93 B(KeyedLoadIC), R(2), U8(1), 93 B(KeyedLoadIC), R(2), U8(1),
94 B(PopContext), R(1),
94 B(Return), 95 B(Return),
95 ] 96 ]
96 constant pool: [ 97 constant pool: [
97 ] 98 ]
98 handlers: [ 99 handlers: [
99 ] 100 ]
100 101
101 --- 102 ---
102 snippet: " 103 snippet: "
103 function f(a, b, c) { return arguments; } 104 function f(a, b, c) { return arguments; }
104 f(); 105 f();
105 " 106 "
106 frame size: 2 107 frame size: 2
107 parameter count: 4 108 parameter count: 4
108 bytecode array length: 29 109 bytecode array length: 31
109 bytecodes: [ 110 bytecodes: [
110 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
111 B(PushContext), R(1), 112 B(PushContext), R(1),
112 B(Ldar), R(arg0), 113 B(Ldar), R(arg0),
113 B(StaContextSlot), R(context), U8(6), 114 B(StaContextSlot), R(context), U8(6),
114 B(Ldar), R(arg1), 115 B(Ldar), R(arg1),
115 B(StaContextSlot), R(context), U8(5), 116 B(StaContextSlot), R(context), U8(5),
116 B(Ldar), R(arg2), 117 B(Ldar), R(arg2),
117 B(StaContextSlot), R(context), U8(4), 118 B(StaContextSlot), R(context), U8(4),
118 B(CreateMappedArguments), 119 B(CreateMappedArguments),
119 B(Star), R(0), 120 B(Star), R(0),
120 B(StackCheck), 121 B(StackCheck),
121 B(Ldar), R(0), 122 B(Ldar), R(0),
123 B(PopContext), R(1),
122 B(Return), 124 B(Return),
123 ] 125 ]
124 constant pool: [ 126 constant pool: [
125 ] 127 ]
126 handlers: [ 128 handlers: [
127 ] 129 ]
128 130
129 --- 131 ---
130 snippet: " 132 snippet: "
131 function f(a, b, c) { 'use strict'; return arguments; } 133 function f(a, b, c) { 'use strict'; return arguments; }
132 f(); 134 f();
133 " 135 "
134 frame size: 1 136 frame size: 1
135 parameter count: 4 137 parameter count: 4
136 bytecode array length: 7 138 bytecode array length: 7
137 bytecodes: [ 139 bytecodes: [
138 B(CreateUnmappedArguments), 140 B(CreateUnmappedArguments),
139 B(Star), R(0), 141 B(Star), R(0),
140 B(StackCheck), 142 B(StackCheck),
141 B(Ldar), R(0), 143 B(Ldar), R(0),
142 B(Return), 144 B(Return),
143 ] 145 ]
144 constant pool: [ 146 constant pool: [
145 ] 147 ]
146 handlers: [ 148 handlers: [
147 ] 149 ]
148 150
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698