Chromium Code Reviews| Index: src/arm/simulator-arm.cc |
| diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
| index d11e340a9b88b2f6076f424d196b223b87fd771b..cdf2511aa0fdd5804266e4ae55cc9411869b0fbc 100644 |
| --- a/src/arm/simulator-arm.cc |
| +++ b/src/arm/simulator-arm.cc |
| @@ -1776,7 +1776,7 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { |
| if (::v8::internal::FLAG_trace_sim) { |
| PrintF("Returned %p\n", reinterpret_cast<void *>(*result)); |
| } |
| - set_register(r0, (int32_t) *result); |
| + set_register(r0, reinterpret_cast<int32_t>(*result)); |
| } else if (redirection->type() == ExternalReference::DIRECT_GETTER_CALL) { |
| SimulatorRuntimeDirectGetterCall target = |
| reinterpret_cast<SimulatorRuntimeDirectGetterCall>(external); |
| @@ -1793,7 +1793,7 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { |
| if (::v8::internal::FLAG_trace_sim) { |
| PrintF("Returned %p\n", reinterpret_cast<void *>(*result)); |
| } |
| - set_register(r0, (int32_t) *result); |
| + set_register(r0, reinterpret_cast<int32_t>(*result)); |
| } else { |
| // builtin call. |
| ASSERT(redirection->type() == ExternalReference::BUILTIN_CALL); |
| @@ -3083,15 +3083,15 @@ void Simulator::DecodeVCVTBetweenFloatingPointAndInteger(Instruction* instr) { |
| if (src_precision == kDoublePrecision) { |
| if (unsigned_integer) { |
| - set_d_register_from_double(dst, |
| - static_cast<double>((uint32_t)val)); |
| + set_d_register_from_double( |
| + dst, static_cast<double>(reinterpret_cast<uint32_t>(val))); |
|
Michael Starzinger
2013/01/07 14:36:31
Shouldn't this be a static_cast?
|
| } else { |
| set_d_register_from_double(dst, static_cast<double>(val)); |
| } |
| } else { |
| if (unsigned_integer) { |
| - set_s_register_from_float(dst, |
| - static_cast<float>((uint32_t)val)); |
| + set_s_register_from_float( |
| + dst, static_cast<float>(reinterpret_cast<uint32_t>(val))); |
|
Michael Starzinger
2013/01/07 14:36:31
Likewise.
|
| } else { |
| set_s_register_from_float(dst, static_cast<float>(val)); |
| } |