Fix intptr_t/int32_t casting problem on Win64.

R=jkummerow@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12899 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
danno@chromium.org 2012-11-08 12:53:15 +00:00
parent bd4e114b8e
commit 0f0da437e2

View File

@ -223,7 +223,7 @@ void RelocInfo::apply(intptr_t delta) {
} else if (rmode_ == CODE_AGE_SEQUENCE) { } else if (rmode_ == CODE_AGE_SEQUENCE) {
if (*pc_ == kCallOpcode) { if (*pc_ == kCallOpcode) {
int32_t* p = reinterpret_cast<int32_t*>(pc_ + 1); int32_t* p = reinterpret_cast<int32_t*>(pc_ + 1);
*p -= delta; // Relocate entry. *p -= static_cast<int32_t>(delta); // Relocate entry.
CPU::FlushICache(p, sizeof(uint32_t)); CPU::FlushICache(p, sizeof(uint32_t));
} }
} }