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(); |