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

Unified Diff: test/mjsunit/polymorph-arrays.js

Issue 7326009: Fix polymorphic array test (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/polymorph-arrays.js
diff --git a/test/mjsunit/polymorph-arrays.js b/test/mjsunit/polymorph-arrays.js
index 76fd89853c5a65a7c465b4926724fc03a40524bf..ff0c433bd76a398b1679ebe51437365735495074 100644
--- a/test/mjsunit/polymorph-arrays.js
+++ b/test/mjsunit/polymorph-arrays.js
@@ -56,6 +56,11 @@ function testPolymorphicLoads() {
init_sparse_array(sparse_object_array);
init_sparse_array(sparse_js_array);
+ assertEquals(1, load(object_array, 1));
+ assertEquals(1, load(js_array, 1));
+ assertEquals(1, load(sparse_object_array, 1));
+ assertEquals(1, load(sparse_js_array, 1));
+
return load;
}
@@ -69,16 +74,6 @@ function testPolymorphicLoads() {
init_sparse_array(sparse_object_array);
init_sparse_array(sparse_js_array);
- // load() should now use polymorphic element loads.
- load = make_polymorphic_load_function();
- assertEquals(1, load(object_array, 1));
- load = make_polymorphic_load_function();
- assertEquals(1, load(js_array, 1));
- load = make_polymorphic_load_function();
- assertEquals(1, load(sparse_object_array, 1));
- load = make_polymorphic_load_function();
- assertEquals(1, load(sparse_js_array, 1));
-
load = make_polymorphic_load_function();
assertEquals(undefined, load(js_array, new Object()));
load = make_polymorphic_load_function();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698