OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
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 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1823 reinterpret_cast<SimulatorRuntimeDirectGetterCallNew>(external); | 1823 reinterpret_cast<SimulatorRuntimeDirectGetterCallNew>(external); |
1824 target(arg0, arg1); | 1824 target(arg0, arg1); |
1825 } | 1825 } |
1826 } else { | 1826 } else { |
1827 // builtin call. | 1827 // builtin call. |
1828 ASSERT(redirection->type() == ExternalReference::BUILTIN_CALL); | 1828 ASSERT(redirection->type() == ExternalReference::BUILTIN_CALL); |
1829 SimulatorRuntimeCall target = | 1829 SimulatorRuntimeCall target = |
1830 reinterpret_cast<SimulatorRuntimeCall>(external); | 1830 reinterpret_cast<SimulatorRuntimeCall>(external); |
1831 if (::v8::internal::FLAG_trace_sim || !stack_aligned) { | 1831 if (::v8::internal::FLAG_trace_sim || !stack_aligned) { |
1832 PrintF( | 1832 PrintF( |
1833 "Call to host function at %p" | 1833 "Call to host function at %p " |
1834 "args %08x, %08x, %08x, %08x, %08x, %08x", | 1834 "args %08x, %08x, %08x, %08x, %08x, %08x", |
1835 FUNCTION_ADDR(target), | 1835 FUNCTION_ADDR(target), |
1836 arg0, | 1836 arg0, |
1837 arg1, | 1837 arg1, |
1838 arg2, | 1838 arg2, |
1839 arg3, | 1839 arg3, |
1840 arg4, | 1840 arg4, |
1841 arg5); | 1841 arg5); |
1842 if (!stack_aligned) { | 1842 if (!stack_aligned) { |
1843 PrintF(" with unaligned stack %08x\n", get_register(sp)); | 1843 PrintF(" with unaligned stack %08x\n", get_register(sp)); |
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3516 uintptr_t address = *stack_slot; | 3516 uintptr_t address = *stack_slot; |
3517 set_register(sp, current_sp + sizeof(uintptr_t)); | 3517 set_register(sp, current_sp + sizeof(uintptr_t)); |
3518 return address; | 3518 return address; |
3519 } | 3519 } |
3520 | 3520 |
3521 } } // namespace v8::internal | 3521 } } // namespace v8::internal |
3522 | 3522 |
3523 #endif // USE_SIMULATOR | 3523 #endif // USE_SIMULATOR |
3524 | 3524 |
3525 #endif // V8_TARGET_ARCH_ARM | 3525 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |