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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 5 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/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3624 matching lines...) Expand 10 before | Expand all | Expand 10 after
3635 Register scratch3) { 3635 Register scratch3) {
3636 #if DEBUG 3636 #if DEBUG
3637 if (actual.is_reg()) { 3637 if (actual.is_reg()) {
3638 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 3638 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
3639 } else { 3639 } else {
3640 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 3640 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
3641 } 3641 }
3642 #endif 3642 #endif
3643 if (FLAG_code_comments) { 3643 if (FLAG_code_comments) {
3644 if (actual.is_reg()) { 3644 if (actual.is_reg()) {
3645 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 3645 Comment(";;; PrepareForTailCall, actual: %s {",
3646 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
3647 actual.reg().code()));
3646 } else { 3648 } else {
3647 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 3649 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
3648 } 3650 }
3649 } 3651 }
3650 3652
3651 // Check if next frame is an arguments adaptor frame. 3653 // Check if next frame is an arguments adaptor frame.
3652 Register caller_args_count_reg = scratch1; 3654 Register caller_args_count_reg = scratch1;
3653 Label no_arguments_adaptor, formal_parameter_count_loaded; 3655 Label no_arguments_adaptor, formal_parameter_count_loaded;
3654 __ movp(scratch2, Operand(rbp, StandardFrameConstants::kCallerFPOffset)); 3656 __ movp(scratch2, Operand(rbp, StandardFrameConstants::kCallerFPOffset));
3655 __ Cmp(Operand(scratch2, StandardFrameConstants::kContextOffset), 3657 __ Cmp(Operand(scratch2, StandardFrameConstants::kContextOffset),
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
5586 __ bind(deferred->exit()); 5588 __ bind(deferred->exit());
5587 __ bind(&done); 5589 __ bind(&done);
5588 } 5590 }
5589 5591
5590 #undef __ 5592 #undef __
5591 5593
5592 } // namespace internal 5594 } // namespace internal
5593 } // namespace v8 5595 } // namespace v8
5594 5596
5595 #endif // V8_TARGET_ARCH_X64 5597 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698