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

Unified Diff: test/mjsunit/regress/regress-593299.js

Issue 1781393002: [turbofan] Fix operand calculation for constant materialization from frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test Created 4 years, 9 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/compiler/x87/code-generator-x87.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-593299.js
diff --git a/test/mjsunit/regress/regress-572589.js b/test/mjsunit/regress/regress-593299.js
similarity index 50%
copy from test/mjsunit/regress/regress-572589.js
copy to test/mjsunit/regress/regress-593299.js
index 1fd755ad1e8d928c0f6f7cab00d274a4c40e5368..255a033f5958edd5d1d7894f7852d09508997b3c 100644
--- a/test/mjsunit/regress/regress-572589.js
+++ b/test/mjsunit/regress/regress-593299.js
@@ -1,11 +1,17 @@
// 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 --no-lazy
+
+// Flags: --harmony-tailcalls
"use strict";
-eval();
-var f = ({x}) => { };
-%OptimizeFunctionOnNextCall(f);
+
+function h(global) { return global.boom(); }
+function g() { var r = h({}); return r; }
+function f() {
+ var o = {};
+ o.__defineGetter__('prop1', g);
+ o.prop1;
+}
+
assertThrows(f);
« no previous file with comments | « src/compiler/x87/code-generator-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698