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

Unified Diff: src/compiler.cc

Issue 2478323002: [compiler] Fix flipped boolean checks in marked tier-up (Closed)
Patch Set: Add some regression tests Created 4 years, 1 month 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: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index bf7702be4f51558e920372fb4bd90d9942a36e33..ac97a0a3e08c10fac483a8e1b989fdd878cd30bb 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -977,7 +977,7 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
}
Handle<Code> code;
- if (!GetBaselineCode(function).ToHandle(&code)) {
+ if (GetBaselineCode(function).ToHandle(&code)) {
return code;
}
break;
@@ -991,8 +991,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
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;
« no previous file with comments | « no previous file | test/mjsunit/shared-function-tier-up-default.js » ('j') | test/mjsunit/shared-function-tier-up-default.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698