aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-976627.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-976627.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-976627.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-976627.js b/deps/v8/test/mjsunit/regress/regress-976627.js
new file mode 100644
index 0000000000..1dde87e196
--- /dev/null
+++ b/deps/v8/test/mjsunit/regress/regress-976627.js
@@ -0,0 +1,40 @@
+// Copyright 2019 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax --young-generation-large-objects
+
+function v2() {
+ const v8 = Symbol || 9007199254740991;
+ function v9(v10,v11,v12) {
+ }
+ const v16 = String();
+ const v100 = String();//add
+ const v106 = String();// add
+ const v116 = String();// add
+ const v17 = Int32Array();
+ const v18 = Map();
+ const v19 = [];
+ const v20 = v18.values();
+ function v21(v22,v23,v24,v25,v26) {
+ }
+ function v28(v29,v30,v31) {
+ function v32(v33,v34,v35,v36) {
+ }
+ let v39 = 0;
+ do {
+ const v40 = v32();
+ function v99() {
+ }
+ } while (v39 < 8);
+ }
+ const v41 = Promise();
+}
+const v46 = ["has",13.37,-9007199254740991,Reflect];
+for (let v50 = 64; v50 <= 2000; v50++) {
+ v46.push(v50,v2);
+}
+const v54 = RegExp(v46);
+const v55 = v54.exec();
+
+assertTrue(%HasElementsInALargeObjectSpace(v55));