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

Unified Diff: test/mjsunit/compiler/deopt-instanceof-proxy.js

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Created 4 years, 3 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
Index: test/mjsunit/compiler/deopt-instanceof-proxy.js
diff --git a/test/mjsunit/compiler/deopt-instanceof-proxy.js b/test/mjsunit/compiler/deopt-instanceof-proxy.js
deleted file mode 100644
index e9a1a98336035125a72e8b333a6901223b8e39cb..0000000000000000000000000000000000000000
--- a/test/mjsunit/compiler/deopt-instanceof-proxy.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --allow-natives-syntax
-
-function A() {}
-
-function foo(a) {
- return a instanceof A;
-}
-
-var a = new A;
-var p = new Proxy(a, {});
-foo(a);
-foo(a);
-%OptimizeFunctionOnNextCall(foo);
-foo(a);
-assertOptimized(foo);
-foo(p);
-foo(p);
-%OptimizeFunctionOnNextCall(foo);
-foo(p);
-assertOptimized(foo);

Powered by Google App Engine
This is Rietveld 408576698