Reviewers: Jakob,
Description:
Fix intptr_t/int32_t casting problem on Win64.
[email protected]
Please review this at https://codereview.chromium.org/11369133/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/x64/assembler-x64-inl.h
Index: src/x64/assembler-x64-inl.h
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h
index
63ba58bcb18a3d4cb9d13dd3e728886321dddf2e..f86417469fcfc97739f746c256d04b2a67ffed64
100644
--- a/src/x64/assembler-x64-inl.h
+++ b/src/x64/assembler-x64-inl.h
@@ -223,7 +223,7 @@ void RelocInfo::apply(intptr_t delta) {
} else if (rmode_ == CODE_AGE_SEQUENCE) {
if (*pc_ == kCallOpcode) {
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));
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev