Fixed the Mac/Windows build error.

https://codereview.chromium.org/310803003/diff/20001/src/x64/macro-assembler-x64.h
File src/x64/macro-assembler-x64.h (right):

https://codereview.chromium.org/310803003/diff/20001/src/x64/macro-assembler-x64.h#newcode1030
src/x64/macro-assembler-x64.h:1030: static const int mask =
(Field::kMask >> Field::kShift) << kSmiTagSize;
Clang reports an error when using kSmiShift:

    .././src/x64/macro-assembler-x64.h:1061:63: error: shift count >=
width of type [-Werror,-Wshift-count-overflow]
        static const int mask = (Field::kMask >> Field::kShift) <<
kSmiShift;

Windows reports a similar error. So I changed the kSmiShift to
kSmiTagSize.

https://codereview.chromium.org/310803003/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to