Commit 7617f0dc authored by titzer@chromium.org's avatar titzer@chromium.org

Fix size_t/int conversions for Win64.

TBR=jochen@chromium.org
BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23027 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 670df506
......@@ -375,7 +375,8 @@ class AccessTester : public HandleAndZoneScope {
original_elements(orig),
num_elements(num),
untagged_array(static_cast<E*>(malloc(ByteSize()))),
tagged_array(main_isolate()->factory()->NewByteArray(ByteSize())) {
tagged_array(main_isolate()->factory()->NewByteArray(
static_cast<int>(ByteSize()))) {
Reinitialize();
}
......@@ -386,7 +387,7 @@ class AccessTester : public HandleAndZoneScope {
// Nuke both {untagged_array} and {tagged_array} with {original_elements}.
void Reinitialize() {
memcpy(untagged_array, original_elements, ByteSize());
CHECK_EQ(ByteSize(), tagged_array->length());
CHECK_EQ(static_cast<int>(ByteSize()), tagged_array->length());
E* raw = reinterpret_cast<E*>(tagged_array->GetDataStartAddress());
memcpy(raw, original_elements, ByteSize());
}
......@@ -510,7 +511,7 @@ class AccessTester : public HandleAndZoneScope {
void BoundsCheck(int index) {
CHECK_GE(index, 0);
CHECK_LT(index, static_cast<int>(num_elements));
CHECK_EQ(ByteSize(), tagged_array->length());
CHECK_EQ(static_cast<int>(ByteSize()), tagged_array->length());
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment