| 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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 3456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3467 Register scratch3) { | 3467 Register scratch3) { |
| 3468 #if DEBUG | 3468 #if DEBUG |
| 3469 if (actual.is_reg()) { | 3469 if (actual.is_reg()) { |
| 3470 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); | 3470 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); |
| 3471 } else { | 3471 } else { |
| 3472 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); | 3472 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); |
| 3473 } | 3473 } |
| 3474 #endif | 3474 #endif |
| 3475 if (FLAG_code_comments) { | 3475 if (FLAG_code_comments) { |
| 3476 if (actual.is_reg()) { | 3476 if (actual.is_reg()) { |
| 3477 Comment(";;; PrepareForTailCall, actual: %s {", actual.reg().ToString()); | 3477 Comment(";;; PrepareForTailCall, actual: %s {", |
| 3478 RegisterConfiguration::Crankshaft()->GetGeneralRegisterName( |
| 3479 actual.reg().code())); |
| 3478 } else { | 3480 } else { |
| 3479 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); | 3481 Comment(";;; PrepareForTailCall, actual: %d {", actual.immediate()); |
| 3480 } | 3482 } |
| 3481 } | 3483 } |
| 3482 | 3484 |
| 3483 // Check if next frame is an arguments adaptor frame. | 3485 // Check if next frame is an arguments adaptor frame. |
| 3484 Register caller_args_count_reg = scratch1; | 3486 Register caller_args_count_reg = scratch1; |
| 3485 Label no_arguments_adaptor, formal_parameter_count_loaded; | 3487 Label no_arguments_adaptor, formal_parameter_count_loaded; |
| 3486 __ mov(scratch2, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); | 3488 __ mov(scratch2, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); |
| 3487 __ cmp(Operand(scratch2, StandardFrameConstants::kContextOffset), | 3489 __ cmp(Operand(scratch2, StandardFrameConstants::kContextOffset), |
| (...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5308 __ bind(deferred->exit()); | 5310 __ bind(deferred->exit()); |
| 5309 __ bind(&done); | 5311 __ bind(&done); |
| 5310 } | 5312 } |
| 5311 | 5313 |
| 5312 #undef __ | 5314 #undef __ |
| 5313 | 5315 |
| 5314 } // namespace internal | 5316 } // namespace internal |
| 5315 } // namespace v8 | 5317 } // namespace v8 |
| 5316 | 5318 |
| 5317 #endif // V8_TARGET_ARCH_IA32 | 5319 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |