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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.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 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/crankshaft/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3809 Register scratch3) { 3809 Register scratch3) {
3810 #if DEBUG 3810 #if DEBUG
3811 if (actual.is_reg()) { 3811 if (actual.is_reg()) {
3812 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 3812 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
3813 } else { 3813 } else {
3814 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 3814 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
3815 } 3815 }
3816 #endif 3816 #endif
3817 if (FLAG_code_comments) { 3817 if (FLAG_code_comments) {
3818 if (actual.is_reg()) { 3818 if (actual.is_reg()) {
3819 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 3819 Comment(";;; PrepareForTailCall, actual: %s {",
3820 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
3821 actual.reg().code()));
3820 } else { 3822 } else {
3821 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 3823 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
3822 } 3824 }
3823 } 3825 }
3824 3826
3825 // Check if next frame is an arguments adaptor frame. 3827 // Check if next frame is an arguments adaptor frame.
3826 Register caller_args_count_reg = scratch1; 3828 Register caller_args_count_reg = scratch1;
3827 Label no_arguments_adaptor, formal_parameter_count_loaded; 3829 Label no_arguments_adaptor, formal_parameter_count_loaded;
3828 __ LoadP(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); 3830 __ LoadP(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
3829 __ LoadP(scratch3, 3831 __ LoadP(scratch3,
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
5800 __ LoadP(result, 5802 __ LoadP(result,
5801 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5803 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5802 __ bind(deferred->exit()); 5804 __ bind(deferred->exit());
5803 __ bind(&done); 5805 __ bind(&done);
5804 } 5806 }
5805 5807
5806 #undef __ 5808 #undef __
5807 5809
5808 } // namespace internal 5810 } // namespace internal
5809 } // namespace v8 5811 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698