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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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 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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
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 2825 matching lines...) Expand 10 before | Expand all | Expand 10 after
2836 Register scratch3) { 2836 Register scratch3) {
2837 #if DEBUG 2837 #if DEBUG
2838 if (actual.is_reg()) { 2838 if (actual.is_reg()) {
2839 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); 2839 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3));
2840 } else { 2840 } else {
2841 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); 2841 DCHECK(!AreAliased(scratch1, scratch2, scratch3));
2842 } 2842 }
2843 #endif 2843 #endif
2844 if (FLAG_code_comments) { 2844 if (FLAG_code_comments) {
2845 if (actual.is_reg()) { 2845 if (actual.is_reg()) {
2846 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); 2846 Comment(";;; PrepareForTailCall, actual: %s {",
2847 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName(
2848 actual.reg().code()));
2847 } else { 2849 } else {
2848 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); 2850 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate());
2849 } 2851 }
2850 } 2852 }
2851 2853
2852 // Check if next frame is an arguments adaptor frame. 2854 // Check if next frame is an arguments adaptor frame.
2853 Register caller_args_count_reg = scratch1; 2855 Register caller_args_count_reg = scratch1;
2854 Label no_arguments_adaptor, formal_parameter_count_loaded; 2856 Label no_arguments_adaptor, formal_parameter_count_loaded;
2855 __ Ldr(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); 2857 __ Ldr(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
2856 __ Ldr(scratch3, 2858 __ Ldr(scratch3,
(...skipping 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after
5730 // Index is equal to negated out of object property index plus 1. 5732 // Index is equal to negated out of object property index plus 1.
5731 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5733 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5732 __ Ldr(result, FieldMemOperand(result, 5734 __ Ldr(result, FieldMemOperand(result,
5733 FixedArray::kHeaderSize - kPointerSize)); 5735 FixedArray::kHeaderSize - kPointerSize));
5734 __ Bind(deferred->exit()); 5736 __ Bind(deferred->exit());
5735 __ Bind(&done); 5737 __ Bind(&done);
5736 } 5738 }
5737 5739
5738 } // namespace internal 5740 } // namespace internal
5739 } // namespace v8 5741 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-gap-resolver-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698