OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |