Revision: 13448
Author: [email protected]
Date: Mon Jan 21 06:11:25 2013
Log: Disable elimination of unreachable code after HSoftDeopts
Review URL: https://codereview.chromium.org/12036011
http://code.google.com/p/v8/source/detail?r=13448
Modified:
/branches/bleeding_edge/src/flag-definitions.h
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/flag-definitions.h Thu Jan 17 00:41:27 2013
+++ /branches/bleeding_edge/src/flag-definitions.h Mon Jan 21 06:11:25 2013
@@ -211,6 +211,8 @@
"perform array index dehoisting")
DEFINE_bool(dead_code_elimination, true, "use dead code elimination")
DEFINE_bool(trace_dead_code_elimination, false, "trace dead code
elimination")
+DEFINE_bool(unreachable_code_elimination, false,
+ "eliminate unreachable code (hidden behind soft deopts)")
DEFINE_bool(track_allocation_sites, true,
"Use allocation site info to reduce transitions")
DEFINE_bool(trace_osr, false, "trace on-stack replacement")
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Fri Jan 18 01:19:11 2013
+++ /branches/bleeding_edge/src/hydrogen.cc Mon Jan 21 06:11:25 2013
@@ -1267,6 +1267,7 @@
void HGraph::NullifyUnreachableInstructions() {
+ if (!FLAG_unreachable_code_elimination) return;
int block_count = blocks_.length();
for (int i = 0; i < block_count; ++i) {
HBasicBlock* block = blocks_.at(i);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev