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