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

Unified Diff: test/mjsunit/deserialize-optimize-inner.js

Issue 737373003: When optimizing deserialized code, make sure IC state is preserved. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/serialize.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/deserialize-optimize-inner.js
diff --git a/test/mjsunit/debug-compile-optimized.js b/test/mjsunit/deserialize-optimize-inner.js
similarity index 54%
copy from test/mjsunit/debug-compile-optimized.js
copy to test/mjsunit/deserialize-optimize-inner.js
index 468605abaab079d4b19250b90fed7048bec205aa..72df32018af497936ca870ed8901e993f614dcbf 100644
--- a/test/mjsunit/debug-compile-optimized.js
+++ b/test/mjsunit/deserialize-optimize-inner.js
@@ -2,17 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --expose-debug-as debug --allow-natives-syntax --crankshaft
+// Flags: --allow-natives-syntax --cache=code --no-lazy --serialize-inner
-Debug = debug.Debug;
+function f(x, y) { return x + y; }
-Debug.setListener(function() {});
-
-function f() {}
-f();
-f();
+assertEquals(1, f(0, 1));
+assertEquals(5, f(2, 3));
%OptimizeFunctionOnNextCall(f);
-f();
+assertEquals(9, f(4, 5));
assertOptimized(f);
-
-Debug.setListener(null);
« no previous file with comments | « src/serialize.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698