Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index f7e00ef63ef15d16ed269956780bd391ee0a0b4b..48ff69f5d273071e0615743e2b2760f2abb71e70 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7000,7 +7000,7 @@ static MaybeObject* Runtime_LazyRecompile(Arguments args) { |
function->ReplaceCode(function->shared()->code()); |
return function->code(); |
} |
- if (CompileOptimized(function, AstNode::kNoNumber, KEEP_EXCEPTION)) { |
+ if (CompileOptimized(function, AstNode::kNoNumber)) { |
return function->code(); |
} |
if (FLAG_trace_opt) { |
@@ -7169,8 +7169,7 @@ static MaybeObject* Runtime_CompileForOnStackReplacement(Arguments args) { |
// Try to compile the optimized code. A true return value from |
// CompileOptimized means that compilation succeeded, not necessarily |
// that optimization succeeded. |
- if (CompileOptimized(function, ast_id, CLEAR_EXCEPTION) && |
- function->IsOptimized()) { |
+ if (CompileOptimized(function, ast_id) && function->IsOptimized()) { |
DeoptimizationInputData* data = DeoptimizationInputData::cast( |
function->code()->deoptimization_data()); |
if (data->OsrPcOffset()->value() >= 0) { |
@@ -7213,9 +7212,6 @@ static MaybeObject* Runtime_CompileForOnStackReplacement(Arguments args) { |
ASSERT(function->code()->kind() == Code::OPTIMIZED_FUNCTION); |
return Smi::FromInt(ast_id); |
} else { |
- if (function->IsMarkedForLazyRecompilation()) { |
- function->ReplaceCode(function->shared()->code()); |
- } |
return Smi::FromInt(-1); |
} |
} |