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

Unified Diff: test/mjsunit/opt-elements-kind.js

Issue 771033003: Revert of Use weak cells in map checks in polymorphic ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « test/cctest/test-heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/opt-elements-kind.js
diff --git a/test/mjsunit/opt-elements-kind.js b/test/mjsunit/opt-elements-kind.js
index 5f4f437299a5551d6c0075095630b5209bacb3f6..be7303b04bb1aea76242e7bab039471ce15fca8d 100644
--- a/test/mjsunit/opt-elements-kind.js
+++ b/test/mjsunit/opt-elements-kind.js
@@ -142,16 +142,10 @@
assertTrue(%HaveSameMap(smis, doubles));
}
-function clear_ic_state() {
- %ClearFunctionTypeFeedback(construct_smis);
- %ClearFunctionTypeFeedback(construct_doubles);
- %ClearFunctionTypeFeedback(convert_mixed);
-}
-
test1();
-clear_ic_state();
+gc(); // clear IC state
test1();
-clear_ic_state();
+gc(); // clear IC state
%OptimizeFunctionOnNextCall(test1);
test1();
-clear_ic_state();
+gc(); // clear IC state
« no previous file with comments | « test/cctest/test-heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698