Index: test/mjsunit/getters-on-elements.js |
diff --git a/test/mjsunit/getters-on-elements.js b/test/mjsunit/getters-on-elements.js |
index e6c526a80e8e641e34a3e6a1d768be6cddc2b723..85525f84664b0b6350594e340c9ed7678990f6ca 100644 |
--- a/test/mjsunit/getters-on-elements.js |
+++ b/test/mjsunit/getters-on-elements.js |
@@ -87,6 +87,7 @@ function base_getter_test(create_func) { |
ap.__defineGetter__(0, function() { calls++; return 0; }); |
foo(a); |
+ assertUnoptimized(foo); |
foo(a); |
foo(a); |
delete a[0]; |
@@ -165,6 +166,15 @@ function base_getter_test(create_func) { |
bar(a); |
assertOptimized(bar); |
assertEquals(1, calls); |
+ |
+ // Reset the state of foo and bar. |
+ clearFunctionTypeFeedback(foo); |
+ deoptimizeFunction(foo); |
+ clearFunctionTypeFeedback(foo); |
+ |
+ clearFunctionTypeFeedback(bar); |
+ deoptimizeFunction(bar); |
+ clearFunctionTypeFeedback(bar); |
} |
// Verify that map transitions don't confuse us. |