Index: test/mjsunit/compiler/regress-5278.js |
diff --git a/test/mjsunit/regress/regress-crbug-621816.js b/test/mjsunit/compiler/regress-5278.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-crbug-621816.js |
copy to test/mjsunit/compiler/regress-5278.js |
index ca7f5ac6df314f81e4c73f9417d1a6f3240540fc..7de302237c7bf683963e081c444b88b0c322018d 100644 |
--- a/test/mjsunit/regress/regress-crbug-621816.js |
+++ b/test/mjsunit/compiler/regress-5278.js |
@@ -4,15 +4,12 @@ |
// Flags: --allow-natives-syntax --turbo |
Benedikt Meurer
2016/08/10 08:51:07
Don't add --turbo here.
epertoso
2016/08/10 08:53:33
Done.
|
-function f() { |
- var o = {}; |
- o.a = 1; |
-} |
-function g() { |
- var o = { ['a']: function(){} }; |
- f(); |
-} |
-f(); |
-f(); |
-%OptimizeFunctionOnNextCall(g); |
-g(); |
+(function CheckedInt32Mod() { |
Benedikt Meurer
2016/08/10 08:51:07
Nit: Just use global scope here.
epertoso
2016/08/10 08:53:33
Done.
|
+ function foo(a, b) { |
+ return a % b; |
+ } |
+ foo(2, 1); |
+ foo(2, 1); |
+ %OptimizeFunctionOnNextCall(foo); |
+ assertEquals(-0, foo(-2, 1)); |
+})(); |