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:
parent
36091039b3
commit
3bb5b67204
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user