PPC64: [simulator] Do not sign-extend uint32_t call parameters.

R=bmeurer@chromium.org, titzer@chromium.org, mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1918503002

Cr-Commit-Position: refs/heads/master@{#35766}
This commit is contained in:
mbrandy 2016-04-25 07:03:42 -07:00 committed by Commit bot
parent 36091039b3
commit 3bb5b67204

View File

@ -106,12 +106,14 @@ struct ParameterTraits<int32_t> {
static int64_t Cast(int32_t r) { return static_cast<int64_t>(r); }
};
#if !V8_TARGET_ARCH_PPC64
template <>
struct ParameterTraits<uint32_t> {
static int64_t Cast(uint32_t r) {
return static_cast<int64_t>(static_cast<int32_t>(r));
}
};
#endif
#endif // !V8_TARGET_ARCH_64_BIT