Reviewers: Jakob, loislo,

Message:
This is a follow-up fix for https://codereview.chromium.org/20843012/

Description:
Set bailout reason to kCodeGenerationFailed only when it is not set yet

BUG=None

Please review this at https://codereview.chromium.org/22404007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/compiler.cc


Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 13cdb9b1e9ea8ce355e0ea2c1ef78e8689dda514..5ed274a7a20f4ae734db91772bcdfb7d7e64e536 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -485,7 +485,7 @@ OptimizingCompiler::Status OptimizingCompiler::GenerateAndInstallCode() {
     DisallowDeferredHandleDereference no_deferred_handle_deref;
     Handle<Code> optimized_code = chunk_->Codegen();
     if (optimized_code.is_null()) {
-      if (info()->bailout_reason() != kNoReason) {
+      if (info()->bailout_reason() == kNoReason) {
         info()->set_bailout_reason(kCodeGenerationFailed);
       }
       return AbortOptimization();


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to