Index: test/mjsunit/allocation-site-info.js |
diff --git a/test/mjsunit/allocation-site-info.js b/test/mjsunit/allocation-site-info.js |
index 9984f5bd2cb123f791170dcb9d7f6ab76771901f..60d8d27006b044c2c06c88cbb0472ea415fd6e23 100644 |
--- a/test/mjsunit/allocation-site-info.js |
+++ b/test/mjsunit/allocation-site-info.js |
@@ -317,6 +317,9 @@ function instanceof_check2(type) { |
} |
var realmBArray = Realm.eval(realmB, "Array"); |
+// Two calls with Array because ES6 instanceof desugars into a load of Array, |
+// and load has a premonomorphic state. |
+instanceof_check(Array); |
instanceof_check(Array); |
instanceof_check(realmBArray); |
@@ -327,6 +330,10 @@ instanceof_check(realmBArray); |
// It'll go (uninit->realmBArray) then (realmBArray->megamorphic). Recognize |
// that state "Array" implies an AllocationSite is present, and code is |
// configured to use it. |
+ |
+// Two calls with realmBArray because ES6 instanceof desugars into a load of |
+// realmBArray, and load has a premonomorphic state. |
+instanceof_check2(realmBArray); |
instanceof_check2(realmBArray); |
instanceof_check2(Array); |