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

Unified Diff: test/mjsunit/getters-on-elements.js

Issue 2750623004: [test] Fix mjsunit/getters-on-elements to reset function state (Closed)
Patch Set: Blacklist the test Created 3 years, 9 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 | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698