OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 "Call to host function at %p with args %08x, %08x, %08x, %08x\n", | 1039 "Call to host function at %p with args %08x, %08x, %08x, %08x\n", |
1040 FUNCTION_ADDR(target), | 1040 FUNCTION_ADDR(target), |
1041 arg0, | 1041 arg0, |
1042 arg1, | 1042 arg1, |
1043 arg2, | 1043 arg2, |
1044 arg3); | 1044 arg3); |
1045 } | 1045 } |
1046 int64_t result = target(arg0, arg1, arg2, arg3); | 1046 int64_t result = target(arg0, arg1, arg2, arg3); |
1047 int32_t lo_res = static_cast<int32_t>(result); | 1047 int32_t lo_res = static_cast<int32_t>(result); |
1048 int32_t hi_res = static_cast<int32_t>(result >> 32); | 1048 int32_t hi_res = static_cast<int32_t>(result >> 32); |
| 1049 if (::v8::internal::FLAG_trace_sim) { |
| 1050 PrintF("Returned %08x\n", lo_res); |
| 1051 } |
1049 set_register(r0, lo_res); | 1052 set_register(r0, lo_res); |
1050 set_register(r1, hi_res); | 1053 set_register(r1, hi_res); |
1051 set_register(r0, result); | 1054 set_register(r0, result); |
1052 } | 1055 } |
1053 set_register(lr, saved_lr); | 1056 set_register(lr, saved_lr); |
1054 set_pc(get_register(lr)); | 1057 set_pc(get_register(lr)); |
1055 break; | 1058 break; |
1056 } | 1059 } |
1057 case break_point: { | 1060 case break_point: { |
1058 Debugger dbg(this); | 1061 Debugger dbg(this); |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1754 set_register(r10, r10_val); | 1757 set_register(r10, r10_val); |
1755 set_register(r11, r11_val); | 1758 set_register(r11, r11_val); |
1756 | 1759 |
1757 int result = get_register(r0); | 1760 int result = get_register(r0); |
1758 return reinterpret_cast<Object*>(result); | 1761 return reinterpret_cast<Object*>(result); |
1759 } | 1762 } |
1760 | 1763 |
1761 } } // namespace assembler::arm | 1764 } } // namespace assembler::arm |
1762 | 1765 |
1763 #endif // !defined(__arm__) | 1766 #endif // !defined(__arm__) |
OLD | NEW |