OLD | NEW |
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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 3564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3575 Register scratch3) { | 3575 Register scratch3) { |
3576 #if DEBUG | 3576 #if DEBUG |
3577 if (actual.is_reg()) { | 3577 if (actual.is_reg()) { |
3578 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); | 3578 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); |
3579 } else { | 3579 } else { |
3580 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); | 3580 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); |
3581 } | 3581 } |
3582 #endif | 3582 #endif |
3583 if (FLAG_code_comments) { | 3583 if (FLAG_code_comments) { |
3584 if (actual.is_reg()) { | 3584 if (actual.is_reg()) { |
3585 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); | 3585 Comment(";;; PrepareForTailCall, actual: %s {", |
| 3586 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName( |
| 3587 actual.reg().code())); |
3586 } else { | 3588 } else { |
3587 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); | 3589 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); |
3588 } | 3590 } |
3589 } | 3591 } |
3590 | 3592 |
3591 // Check if next frame is an arguments adaptor frame. | 3593 // Check if next frame is an arguments adaptor frame. |
3592 Register caller_args_count_reg = scratch1; | 3594 Register caller_args_count_reg = scratch1; |
3593 Label no_arguments_adaptor, formal_parameter_count_loaded; | 3595 Label no_arguments_adaptor, formal_parameter_count_loaded; |
3594 __ ldr(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 3596 __ ldr(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
3595 __ ldr(scratch3, | 3597 __ ldr(scratch3, |
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5544 __ ldr(result, FieldMemOperand(scratch, | 5546 __ ldr(result, FieldMemOperand(scratch, |
5545 FixedArray::kHeaderSize - kPointerSize)); | 5547 FixedArray::kHeaderSize - kPointerSize)); |
5546 __ bind(deferred->exit()); | 5548 __ bind(deferred->exit()); |
5547 __ bind(&done); | 5549 __ bind(&done); |
5548 } | 5550 } |
5549 | 5551 |
5550 #undef __ | 5552 #undef __ |
5551 | 5553 |
5552 } // namespace internal | 5554 } // namespace internal |
5553 } // namespace v8 | 5555 } // namespace v8 |
OLD | NEW |