Revision: 10668
Author:   [email protected]
Date:     Thu Feb  9 06:55:32 2012
Log: Ensure expected behavior for transition hosting tests by flushing ICs

[email protected]

Review URL: https://chromiumcodereview.appspot.com/9373027
http://code.google.com/p/v8/source/detail?r=10668

Modified:
 /branches/bleeding_edge/test/mjsunit/elements-transition-hoisting.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/elements-transition-hoisting.js Thu Feb 9 00:58:19 2012 +++ /branches/bleeding_edge/test/mjsunit/elements-transition-hoisting.js Thu Feb 9 06:55:32 2012
@@ -25,7 +25,7 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-// Flags: --allow-natives-syntax --smi-only-arrays
+// Flags: --allow-natives-syntax --smi-only-arrays --expose-gc

// Ensure that ElementsKind transitions in various situations are hoisted (or // not hoisted) correctly, don't change the semantics programs and don't trigger
@@ -38,6 +38,11 @@
 } else {
   print("Tests do NOT include smi-only arrays.");
 }
+
+// Force existing ICs from previous stress runs to be flushed, otherwise the +// assumptions in this test about when deoptimizations get triggered are not
+// valid.
+gc();

 if (support_smi_only_arrays) {
// Make sure that a simple elements array transitions inside a loop before

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to