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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3700 matching lines...) Expand 10 before | Expand all | Expand 10 after
3711 Register scratch3) { 3711 Register scratch3) {
3712 #if DEBUG 3712 #if DEBUG
3713 if (actual.is_reg()) { 3713 if (actual.is_reg()) {
3714 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 3714 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
3715 } else { 3715 } else {
3716 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 3716 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
3717 } 3717 }
3718 #endif 3718 #endif
3719 if (FLAG_code_comments) { 3719 if (FLAG_code_comments) {
3720 if (actual.is_reg()) { 3720 if (actual.is_reg()) {
3721 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 3721 Comment(";;; PrepareForTailCall, actual: %s {",
3722 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
3723 actual.reg().code()));
3722 } else { 3724 } else {
3723 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 3725 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
3724 } 3726 }
3725 } 3727 }
3726 3728
3727 // Check if next frame is an arguments adaptor frame. 3729 // Check if next frame is an arguments adaptor frame.
3728 Register caller_args_count_reg = scratch1; 3730 Register caller_args_count_reg = scratch1;
3729 Label no_arguments_adaptor, formal_parameter_count_loaded; 3731 Label no_arguments_adaptor, formal_parameter_count_loaded;
3730 __ LoadP(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); 3732 __ LoadP(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
3731 __ LoadP(scratch3, 3733 __ LoadP(scratch3,
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
5684 __ LoadP(result, 5686 __ LoadP(result,
5685 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5687 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5686 __ bind(deferred->exit()); 5688 __ bind(deferred->exit());
5687 __ bind(&done); 5689 __ bind(&done);
5688 } 5690 }
5689 5691
5690 #undef __ 5692 #undef __
5691 5693
5692 } // namespace internal 5694 } // namespace internal
5693 } // namespace v8 5695 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698