Index: test/mjsunit/debug-compile-optimized.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/debug-compile-optimized.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/debug-compile-optimized.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..468605abaab079d4b19250b90fed7048bec205aa 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/debug-compile-optimized.js |
@@ -2,20 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax |
+// Flags: --expose-debug-as debug --allow-natives-syntax --crankshaft |
-function g() { |
- arguments.length; |
-} |
+Debug = debug.Debug; |
-var global = ""; |
- |
-function f() { |
- global.dummy = this; |
- g({}); |
-} |
+Debug.setListener(function() {}); |
+function f() {} |
f(); |
f(); |
%OptimizeFunctionOnNextCall(f); |
f(); |
+assertOptimized(f); |
+ |
+Debug.setListener(null); |