Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1398)

Unified Diff: test/cctest/test-heap.cc

Issue 113574: X64: Fixups in heap-test.cc to make it compile in X64 mode. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index e35ac5fbaf35f95e78866a4ba20e1dbf8f7f5d16..4e924215b958c5fac318f232f457d2a9fc0e04b5 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -315,7 +315,7 @@ static bool WeakPointerCleared = false;
static void TestWeakGlobalHandleCallback(v8::Persistent<v8::Value> handle,
void* id) {
USE(handle);
- if (1234 == reinterpret_cast<int>(id)) WeakPointerCleared = true;
+ if (1234 == reinterpret_cast<intptr_t>(id)) WeakPointerCleared = true;
}
@@ -385,7 +385,7 @@ TEST(WeakGlobalHandlesMark) {
static void TestDeleteWeakGlobalHandleCallback(
v8::Persistent<v8::Value> handle,
void* id) {
- if (1234 == reinterpret_cast<int>(id)) WeakPointerCleared = true;
+ if (1234 == reinterpret_cast<intptr_t>(id)) WeakPointerCleared = true;
handle.Dispose();
}
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698