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

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

Issue 6902112: Avoid using a register for constant external array indices. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add arch-independent ExternalArrayTypeToShiftSize() function Created 9 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/lithium-x64.cc ('k') | test/mjsunit/external-array.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index ab94085a95f0da53624a80c4b0edede4310bfb00..09aec9637be2434824b1fae1f65d581332dfcefa 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -11910,35 +11910,6 @@ static void ExternalArrayTestHelper(v8::ExternalArrayType array_type,
CHECK_EQ(true, result->BooleanValue());
}
- // Test crankshaft external array loads
- for (int i = 0; i < kElementCount; i++) {
- array->set(i, static_cast<ElementType>(i));
- }
- result = CompileRun("function ee_load_test_func(sum) {"
- " for (var i = 0; i < 40; ++i)"
- " sum += ext_array[i];"
- " return sum;"
- "}"
- "sum=0;"
- "for (var i=0;i<10000;++i) {"
- " sum=ee_load_test_func(sum);"
- "}"
- "sum;");
- CHECK_EQ(7800000, result->Int32Value());
-
- // Test crankshaft external array stores
- result = CompileRun("function ee_store_test_func(sum) {"
- " for (var i = 0; i < 40; ++i)"
- " sum += ext_array[i] = i;"
- " return sum;"
- "}"
- "sum=0;"
- "for (var i=0;i<10000;++i) {"
- " sum=ee_store_test_func(sum);"
- "}"
- "sum;");
- CHECK_EQ(7800000, result->Int32Value());
-
for (int i = 0; i < kElementCount; i++) {
array->set(i, static_cast<ElementType>(i));
}
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | test/mjsunit/external-array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698