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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1269913002: [turbofan] Simplifying handling of callee-cleanup stack area. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/c-linkage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 __ Pop(fp, lr); 1171 __ Pop(fp, lr);
1172 __ Ret(); 1172 __ Ret();
1173 } else if (descriptor->IsJSFunctionCall() || needs_frame_) { 1173 } else if (descriptor->IsJSFunctionCall() || needs_frame_) {
1174 // Canonicalize JSFunction return sites for now. 1174 // Canonicalize JSFunction return sites for now.
1175 if (return_label_.is_bound()) { 1175 if (return_label_.is_bound()) {
1176 __ B(&return_label_); 1176 __ B(&return_label_);
1177 } else { 1177 } else {
1178 __ Bind(&return_label_); 1178 __ Bind(&return_label_);
1179 __ Mov(jssp, fp); 1179 __ Mov(jssp, fp);
1180 __ Pop(fp, lr); 1180 __ Pop(fp, lr);
1181 int pop_count = descriptor->IsJSFunctionCall() 1181 int pop_count = static_cast<int>(descriptor->StackParameterCount());
1182 ? static_cast<int>(descriptor->JSParameterCount())
1183 : (info()->IsStub()
1184 ? info()->code_stub()->GetStackParameterCount()
1185 : 0);
1186 if (pop_count != 0) { 1182 if (pop_count != 0) {
1187 __ Drop(pop_count); 1183 __ Drop(pop_count);
1188 } 1184 }
1189 __ Ret(); 1185 __ Ret();
1190 } 1186 }
1191 } else { 1187 } else {
1192 __ Ret(); 1188 __ Ret();
1193 } 1189 }
1194 } 1190 }
1195 1191
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 } 1370 }
1375 } 1371 }
1376 } 1372 }
1377 } 1373 }
1378 1374
1379 #undef __ 1375 #undef __
1380 1376
1381 } // namespace compiler 1377 } // namespace compiler
1382 } // namespace internal 1378 } // namespace internal
1383 } // namespace v8 1379 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/c-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698