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

Unified Diff: test/mjsunit/regress/regress-648373-sloppy-arguments-includesValues.js

Issue 2354773006: [elements] Handlify raw parameter_map pointers for SloppyArgumentsAccessor (Closed)
Patch Set: Created 4 years, 3 months 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 | « src/elements.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-648373-sloppy-arguments-includesValues.js
diff --git a/test/mjsunit/regress/regress-648373-sloppy-arguments-includesValues.js b/test/mjsunit/regress/regress-648373-sloppy-arguments-includesValues.js
new file mode 100644
index 0000000000000000000000000000000000000000..d586b8049593c9f472f8e8146413a376bfbf3e0e
--- /dev/null
+++ b/test/mjsunit/regress/regress-648373-sloppy-arguments-includesValues.js
@@ -0,0 +1,33 @@
+// Copyright 2016 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 --expose-gc
+
+function getRandomProperty(v, rand) { var properties = Object.getOwnPropertyNames(v); var proto = Object.getPrototypeOf(v); if (proto) {; } if ("constructor" && v.constructor.hasOwnProperty()) {; } if (properties.length == 0) { return "0"; } return properties[rand % properties.length]; }
+var __v_4 = {};
+
+__v_2 = {
+ FAST_ELEMENTS() {
+ return {
+ get 0() {
+ } };
+ } ,
+ Arguments: {
+ FAST_SLOPPY_ARGUMENTS_ELEMENTS() {
+ var __v_11 = (function( b) { return arguments; })("foo", NaN, "bar");
+ __v_11.__p_2006760047 = __v_11[getRandomProperty( 2006760047)];
+ __v_11.__defineGetter__(getRandomProperty( 1698457573), function() { gc(); __v_4[ 1486458228] = __v_2[ 1286067691]; return __v_11.__p_2006760047; });
+;
+Array.prototype.includes.call(__v_11);
+ },
+ Detached_Float64Array() {
+ } }
+};
+function __f_3(suites) {
+ Object.keys(suites).forEach(suite => __f_4(suites[suite]));
+ function __f_4(suite) {
+ Object.keys(suite).forEach(test => suite[test]());
+ }
+}
+__f_3(__v_2);
« no previous file with comments | « src/elements.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698