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

Unified Diff: test/mjsunit/modules-turbo.js

Issue 2472143002: [modules] Disable Crankshaft for functions referencing module variables. (Closed)
Patch Set: Created 4 years, 1 month 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/bailout-reason.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-turbo.js
diff --git a/test/mjsunit/regress/regress-crbug-630923.js b/test/mjsunit/modules-turbo.js
similarity index 72%
copy from test/mjsunit/regress/regress-crbug-630923.js
copy to test/mjsunit/modules-turbo.js
index ff0d2dd05efbedec15a515545eac2184c36c59f3..7c31682a5be4702202b62b4f06b8724b3161e00c 100644
--- a/test/mjsunit/regress/regress-crbug-630923.js
+++ b/test/mjsunit/modules-turbo.js
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// MODULE
// Flags: --allow-natives-syntax
-var o = {};
-function bar(o) {
- return 1 + (o.t ? 1 : 2);
-}
-function foo() {
- bar(o);
-}
+export let x = 0;
+function foo() { x++ };
foo();
%OptimizeFunctionOnNextCall(foo);
foo();
+assertOptimized(foo);
+assertEquals(2, x);
« no previous file with comments | « src/bailout-reason.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698