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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 3706 matching lines...) Expand 10 before | Expand all | Expand 10 after
3717 Register scratch3) { 3717 Register scratch3) {
3718 #if DEBUG 3718 #if DEBUG
3719 if (actual.is_reg()) { 3719 if (actual.is_reg()) {
3720 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 3720 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
3721 } else { 3721 } else {
3722 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 3722 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
3723 } 3723 }
3724 #endif 3724 #endif
3725 if (FLAG_code_comments) { 3725 if (FLAG_code_comments) {
3726 if (actual.is_reg()) { 3726 if (actual.is_reg()) {
3727 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 3727 Comment(";;; PrepareForTailCall, actual: %s {",
3728 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
3729 actual.reg().code()));
3728 } else { 3730 } else {
3729 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 3731 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
3730 } 3732 }
3731 } 3733 }
3732 3734
3733 // Check if next frame is an arguments adaptor frame. 3735 // Check if next frame is an arguments adaptor frame.
3734 Register caller_args_count_reg = scratch1; 3736 Register caller_args_count_reg = scratch1;
3735 Label no_arguments_adaptor, formal_parameter_count_loaded; 3737 Label no_arguments_adaptor, formal_parameter_count_loaded;
3736 __ mov(scratch2, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); 3738 __ mov(scratch2, Operand(ebp, StandardFrameConstants::kCallerFPOffset));
3737 __ cmp(Operand(scratch2, StandardFrameConstants::kContextOffset), 3739 __ cmp(Operand(scratch2, StandardFrameConstants::kContextOffset),
(...skipping 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 __ bind(deferred->exit()); 5784 __ bind(deferred->exit());
5783 __ bind(&done); 5785 __ bind(&done);
5784 } 5786 }
5785 5787
5786 #undef __ 5788 #undef __
5787 5789
5788 } // namespace internal 5790 } // namespace internal
5789 } // namespace v8 5791 } // namespace v8
5790 5792
5791 #endif // V8_TARGET_ARCH_X87 5793 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x87/lithium-gap-resolver-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698