Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 7a29459902c3213e9f09c64b5c15424b5b4ccd47..05ca9bb349757fa9d1759d2112209c91bdd69e9c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -879,7 +879,7 @@ |
} |
Handle<Code> code; |
- if (GetBaselineCode(function).ToHandle(&code)) { |
+ if (!GetBaselineCode(function).ToHandle(&code)) { |
return code; |
} |
break; |
@@ -893,8 +893,8 @@ |
Handle<Code> code; |
// TODO(leszeks): Look into performing this compilation concurrently. |
- if (GetOptimizedCode(function, Compiler::NOT_CONCURRENT) |
- .ToHandle(&code)) { |
+ if (!GetOptimizedCode(function, Compiler::NOT_CONCURRENT) |
+ .ToHandle(&code)) { |
return code; |
} |
break; |