| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
| 10 | 10 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 TraceSim(" with unaligned stack 0x%016" PRIx64 ".\n", sp()); | 582 TraceSim(" with unaligned stack 0x%016" PRIx64 ".\n", sp()); |
| 583 FATAL("ALIGNMENT EXCEPTION"); | 583 FATAL("ALIGNMENT EXCEPTION"); |
| 584 } | 584 } |
| 585 | 585 |
| 586 switch (redirection->type()) { | 586 switch (redirection->type()) { |
| 587 default: | 587 default: |
| 588 TraceSim("Type: Unknown.\n"); | 588 TraceSim("Type: Unknown.\n"); |
| 589 UNREACHABLE(); | 589 UNREACHABLE(); |
| 590 break; | 590 break; |
| 591 | 591 |
| 592 case ExternalReference::BUILTIN_CALL: { | 592 case ExternalReference::BUILTIN_CALL: |
| 593 case ExternalReference::BUILTIN_CALL_PAIR: { |
| 593 // Object* f(v8::internal::Arguments) or | 594 // Object* f(v8::internal::Arguments) or |
| 594 // ObjectPair f(v8::internal::Arguments). | 595 // ObjectPair f(v8::internal::Arguments). |
| 595 TraceSim("Type: BUILTIN_CALL\n"); | 596 TraceSim("Type: BUILTIN_CALL\n"); |
| 596 SimulatorRuntimeCall target = | 597 SimulatorRuntimeCall target = |
| 597 reinterpret_cast<SimulatorRuntimeCall>(external); | 598 reinterpret_cast<SimulatorRuntimeCall>(external); |
| 598 | 599 |
| 599 // We don't know how many arguments are being passed, but we can | 600 // We don't know how many arguments are being passed, but we can |
| 600 // pass 8 without touching the stack. They will be ignored by the | 601 // pass 8 without touching the stack. They will be ignored by the |
| 601 // host function if they aren't used. | 602 // host function if they aren't used. |
| 602 TraceSim("Arguments: " | 603 TraceSim("Arguments: " |
| (...skipping 3263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3866 delete[] format; | 3867 delete[] format; |
| 3867 } | 3868 } |
| 3868 | 3869 |
| 3869 | 3870 |
| 3870 #endif // USE_SIMULATOR | 3871 #endif // USE_SIMULATOR |
| 3871 | 3872 |
| 3872 } // namespace internal | 3873 } // namespace internal |
| 3873 } // namespace v8 | 3874 } // namespace v8 |
| 3874 | 3875 |
| 3875 #endif // V8_TARGET_ARCH_ARM64 | 3876 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |