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

Unified Diff: test/mjsunit/regress/regress-inline-class-constructor.js

Issue 1415723005: Ensure we never inline class constructors in Crankshaft, as it currently is entirely unsupported. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/crankshaft/hydrogen.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-inline-class-constructor.js
diff --git a/test/mjsunit/regress/regress-crbug-490021.js b/test/mjsunit/regress/regress-inline-class-constructor.js
similarity index 57%
copy from test/mjsunit/regress/regress-crbug-490021.js
copy to test/mjsunit/regress/regress-inline-class-constructor.js
index 745c0a801051037274b6f1e52de5a8ed92d98a86..1d771767585c6060e0edc95f651d544d6152986d 100644
--- a/test/mjsunit/regress/regress-crbug-490021.js
+++ b/test/mjsunit/regress/regress-inline-class-constructor.js
@@ -4,12 +4,25 @@
// Flags: --allow-natives-syntax
-var global = new Object(3);
-function f() {
- global[0] = global[0] >>> 15.5;
+"use strict";
+
+var B = class extends Int32Array { }
+
+function f(b) {
+ if (b) {
+ null instanceof B;
+ }
}
f();
f();
+f();
%OptimizeFunctionOnNextCall(f);
f();
+
+function f2() {
+ return new B();
+}
+
+%OptimizeFunctionOnNextCall(f2);
+f2();
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698