PPC/S390 [builtins] Fix build failure on 64bit big endian
On 64bit BE, build fails with error "error: left shift count >= width of type" casting the variable to uintptr_t which will set the size correctly. R=predrag.rudic@imgtec.com, jkummerow@chromium.org, ivica.bogosavljevic@imgtec.com, hablich@chromium.org LOG=N Bug: Change-Id: I8e466bd2c17b9976171ffd88725dce548153108e Reviewed-on: https://chromium-review.googlesource.com/616010 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Jaideep Bajwa <bjaideep@ca.ibm.com> Cr-Commit-Position: refs/heads/master@{#47362}
This commit is contained in:
parent
dc1f199992
commit
b3e6f79379
@ -39,7 +39,8 @@ struct BuiltinMetadata {
|
||||
{ FUNCTION_ADDR(Builtin_##Name) }},
|
||||
#ifdef V8_TARGET_BIG_ENDIAN
|
||||
#define DECL_TFJ(Name, Count, ...) { #Name, Builtins::TFJ, \
|
||||
{ reinterpret_cast<Address>(Count << (kBitsPerByte * (kPointerSize - 1))) }},
|
||||
{ reinterpret_cast<Address>(static_cast<uintptr_t>( \
|
||||
Count) << (kBitsPerByte * (kPointerSize - 1))) }},
|
||||
#else
|
||||
#define DECL_TFJ(Name, Count, ...) { #Name, Builtins::TFJ, \
|
||||
{ reinterpret_cast<Address>(Count) }},
|
||||
|
Loading…
Reference in New Issue
Block a user