| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3527 Register scratch3) { | 3527 Register scratch3) { |
| 3528 #if DEBUG | 3528 #if DEBUG |
| 3529 if (actual.is_reg()) { | 3529 if (actual.is_reg()) { |
| 3530 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); | 3530 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); |
| 3531 } else { | 3531 } else { |
| 3532 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); | 3532 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); |
| 3533 } | 3533 } |
| 3534 #endif | 3534 #endif |
| 3535 if (FLAG_code_comments) { | 3535 if (FLAG_code_comments) { |
| 3536 if (actual.is_reg()) { | 3536 if (actual.is_reg()) { |
| 3537 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); | 3537 Comment(";;; PrepareForTailCall, actual: %s {", |
| 3538 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName( |
| 3539 actual.reg().code())); |
| 3538 } else { | 3540 } else { |
| 3539 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); | 3541 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); |
| 3540 } | 3542 } |
| 3541 } | 3543 } |
| 3542 | 3544 |
| 3543 // Check if next frame is an arguments adaptor frame. | 3545 // Check if next frame is an arguments adaptor frame. |
| 3544 Register caller_args_count_reg = scratch1; | 3546 Register caller_args_count_reg = scratch1; |
| 3545 Label no_arguments_adaptor, formal_parameter_count_loaded; | 3547 Label no_arguments_adaptor, formal_parameter_count_loaded; |
| 3546 __ lw(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 3548 __ lw(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
| 3547 __ lw(scratch3, MemOperand(scratch2, StandardFrameConstants::kContextOffset)); | 3549 __ lw(scratch3, MemOperand(scratch2, StandardFrameConstants::kContextOffset)); |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5542 __ lw(result, FieldMemOperand(scratch, | 5544 __ lw(result, FieldMemOperand(scratch, |
| 5543 FixedArray::kHeaderSize - kPointerSize)); | 5545 FixedArray::kHeaderSize - kPointerSize)); |
| 5544 __ bind(deferred->exit()); | 5546 __ bind(deferred->exit()); |
| 5545 __ bind(&done); | 5547 __ bind(&done); |
| 5546 } | 5548 } |
| 5547 | 5549 |
| 5548 #undef __ | 5550 #undef __ |
| 5549 | 5551 |
| 5550 } // namespace internal | 5552 } // namespace internal |
| 5551 } // namespace v8 | 5553 } // namespace v8 |
| OLD | NEW |