Commit 0898e9ec authored by titzer@chromium.org's avatar titzer@chromium.org

Fix build on Win64 for tests.

R=bmeurer@chromium.org
BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22820 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 60fb024a
......@@ -321,9 +321,9 @@ TEST(RunLoadFieldFromUntaggedBase) {
Smi* smis[] = {Smi::FromInt(1), Smi::FromInt(2), Smi::FromInt(3)};
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) {
FieldAccess access = {kUntaggedBase, // untagged base
i * sizeof(Smi*), // offset
Handle<Name>(), Type::Integral32(), kMachineTagged};
int offset = static_cast<int>(i * sizeof(Smi*));
FieldAccess access = {kUntaggedBase, offset, Handle<Name>(),
Type::Integral32(), kMachineTagged};
SimplifiedGraphBuilderTester<Object*> t;
Node* load = t.LoadField(access, t.PointerConstant(smis));
......@@ -345,9 +345,9 @@ TEST(RunStoreFieldToUntaggedBase) {
Smi* smis[] = {Smi::FromInt(1), Smi::FromInt(2), Smi::FromInt(3)};
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) {
FieldAccess access = {kUntaggedBase, // untagged base
i * sizeof(Smi*), // offset
Handle<Name>(), Type::Integral32(), kMachineTagged};
int offset = static_cast<int>(i * sizeof(Smi*));
FieldAccess access = {kUntaggedBase, offset, Handle<Name>(),
Type::Integral32(), kMachineTagged};
SimplifiedGraphBuilderTester<Object*> t(kMachineTagged);
Node* p0 = t.Parameter(0);
......@@ -373,13 +373,13 @@ TEST(RunLoadElementFromUntaggedBase) {
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) { // for header sizes
for (size_t j = i; j < ARRAY_SIZE(smis); j++) { // for element index
ElementAccess access = {kUntaggedBase, // untagged base
i * sizeof(Smi*), // header size
Type::Integral32(), kMachineTagged};
int offset = static_cast<int>(i * sizeof(Smi*));
ElementAccess access = {kUntaggedBase, offset, Type::Integral32(),
kMachineTagged};
SimplifiedGraphBuilderTester<Object*> t;
Node* load =
t.LoadElement(access, t.PointerConstant(smis), t.Int32Constant(j));
Node* load = t.LoadElement(access, t.PointerConstant(smis),
t.Int32Constant(static_cast<int>(j)));
t.Return(load);
t.LowerAllNodes();
......@@ -401,13 +401,14 @@ TEST(RunStoreElementFromUntaggedBase) {
for (size_t i = 0; i < ARRAY_SIZE(smis); i++) { // for header sizes
for (size_t j = i; j < ARRAY_SIZE(smis); j++) { // for element index
ElementAccess access = {kUntaggedBase, // untagged base
i * sizeof(Smi*), // header size
Type::Integral32(), kMachineTagged};
int offset = static_cast<int>(i * sizeof(Smi*));
ElementAccess access = {kUntaggedBase, offset, Type::Integral32(),
kMachineTagged};
SimplifiedGraphBuilderTester<Object*> t(kMachineTagged);
Node* p0 = t.Parameter(0);
t.StoreElement(access, t.PointerConstant(smis), t.Int32Constant(j), p0);
t.StoreElement(access, t.PointerConstant(smis),
t.Int32Constant(static_cast<int>(j)), p0);
t.Return(p0);
t.LowerAllNodes();
......
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