Index: test/mjsunit/opt-elements-kind.js |
diff --git a/test/mjsunit/opt-elements-kind.js b/test/mjsunit/opt-elements-kind.js |
index a7811c81eafa87266e96374a6aec90ccf74cecf7..fe6b8b9bfb8c8b541256d74e0f108cd01d383717 100644 |
--- a/test/mjsunit/opt-elements-kind.js |
+++ b/test/mjsunit/opt-elements-kind.js |
@@ -26,6 +26,7 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Flags: --allow-natives-syntax --smi-only-arrays --expose-gc |
+// Flags: --notrack_allocation_sites |
// Limit the number of stress runs to reduce polymorphism it defeats some of the |
// assumptions made about how elements transitions work because transition stubs |
@@ -113,20 +114,8 @@ function assertKind(expected, obj, name_opt) { |
} |
%NeverOptimizeFunction(construct_smis); |
- |
-// This code exists to eliminate the learning influence of AllocationSites |
-// on the following tests. |
-var __sequence = 0; |
-function make_array_string() { |
- this.__sequence = this.__sequence + 1; |
- return "/* " + this.__sequence + " */ [0, 0, 0];" |
-} |
-function make_array() { |
- return eval(make_array_string()); |
-} |
- |
function construct_smis() { |
- var a = make_array(); |
+ var a = [0, 0, 0]; |
a[0] = 0; // Send the COW array map to the steak house. |
assertKind(elements_kind.fast_smi_only, a); |
return a; |