Mercurial > hg > truffle
comparison src/cpu/x86/vm/c1_LIRAssembler_x86.cpp @ 512:db4caa99ef11
6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t
Summary: Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms.
Reviewed-by: jrose, kvn
author | xlu |
---|---|
date | Wed, 24 Dec 2008 13:06:09 -0800 |
parents | 6e7305abe64c |
children | 0fbdb4381b99 56aae7be60d4 |
comparison
equal
deleted
inserted
replaced
511:dabd8d202164 | 512:db4caa99ef11 |
---|---|
777 break; | 777 break; |
778 | 778 |
779 case T_OBJECT: // fall through | 779 case T_OBJECT: // fall through |
780 case T_ARRAY: | 780 case T_ARRAY: |
781 if (c->as_jobject() == NULL) { | 781 if (c->as_jobject() == NULL) { |
782 __ movptr(as_Address(addr), (int32_t)NULL_WORD); | 782 __ movptr(as_Address(addr), NULL_WORD); |
783 } else { | 783 } else { |
784 if (is_literal_address(addr)) { | 784 if (is_literal_address(addr)) { |
785 ShouldNotReachHere(); | 785 ShouldNotReachHere(); |
786 __ movoop(as_Address(addr, noreg), c->as_jobject()); | 786 __ movoop(as_Address(addr, noreg), c->as_jobject()); |
787 } else { | 787 } else { |