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

Unified Diff: test/mjsunit/ignition/dead-code-source-position.js

Issue 1668863002: [interpreter] source positions should not be emitted for dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/ignition/dead-code-source-position.js
diff --git a/test/mjsunit/compiler/regress-572409.js b/test/mjsunit/ignition/dead-code-source-position.js
similarity index 71%
copy from test/mjsunit/compiler/regress-572409.js
copy to test/mjsunit/ignition/dead-code-source-position.js
index 126b622625ad4455b4bd2e309ee10e32eb02989e..424c2e3a3fd30f03db15e6756d1cc3d4a6b00261 100644
--- a/test/mjsunit/compiler/regress-572409.js
+++ b/test/mjsunit/ignition/dead-code-source-position.js
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var o = function() {};
+// Flags: --ignition-filter=f
rmcilroy 2016/02/04 15:06:39 nit - no need for --ignition-filter=f
Yang 2016/02/05 12:21:31 Done.
+
function f() {
- var lit = { __proto__: o };
- o instanceof RegExp;
+ for (f(x) in []) { f(new f()) }
}
+
f();
« src/interpreter/source-position-table.cc ('K') | « src/interpreter/source-position-table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698