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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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 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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 3719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3730 Register scratch3) { 3730 Register scratch3) {
3731 #if DEBUG 3731 #if DEBUG
3732 if (actual.is_reg()) { 3732 if (actual.is_reg()) {
3733 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 3733 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
3734 } else { 3734 } else {
3735 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 3735 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
3736 } 3736 }
3737 #endif 3737 #endif
3738 if (FLAG_code_comments) { 3738 if (FLAG_code_comments) {
3739 if (actual.is_reg()) { 3739 if (actual.is_reg()) {
3740 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 3740 Comment(";;; PrepareForTailCall, actual: %s {",
3741 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
3742 actual.reg().code()));
3741 } else { 3743 } else {
3742 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 3744 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
3743 } 3745 }
3744 } 3746 }
3745 3747
3746 // Check if next frame is an arguments adaptor frame. 3748 // Check if next frame is an arguments adaptor frame.
3747 Register caller_args_count_reg = scratch1; 3749 Register caller_args_count_reg = scratch1;
3748 Label no_arguments_adaptor, formal_parameter_count_loaded; 3750 Label no_arguments_adaptor, formal_parameter_count_loaded;
3749 __ ld(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); 3751 __ ld(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
3750 __ ld(scratch3, MemOperand(scratch2, StandardFrameConstants::kContextOffset)); 3752 __ ld(scratch3, MemOperand(scratch2, StandardFrameConstants::kContextOffset));
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
5746 __ ld(result, FieldMemOperand(scratch, 5748 __ ld(result, FieldMemOperand(scratch,
5747 FixedArray::kHeaderSize - kPointerSize)); 5749 FixedArray::kHeaderSize - kPointerSize));
5748 __ bind(deferred->exit()); 5750 __ bind(deferred->exit());
5749 __ bind(&done); 5751 __ bind(&done);
5750 } 5752 }
5751 5753
5752 #undef __ 5754 #undef __
5753 5755
5754 } // namespace internal 5756 } // namespace internal
5755 } // namespace v8 5757 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698