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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2503763003: Reland of [turbofan] Fix deoptimization of boolean bit constants. (patchset #1 id:1 of https://code… (Closed)
Patch Set: 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
« no previous file with comments | « src/compiler/code-generator.cc ('k') | test/mjsunit/compiler/regress-664490.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 88e941bcb0bb62bd5d4d420c1eef428f446ddc92..c90d7437bfae4c5ec9a53c3d179a62e670a526ef 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -1030,6 +1030,8 @@ class RepresentationSelector {
MachineRepresentation::kWord32 ||
machine_type.semantic() == MachineSemantic::kInt32 ||
machine_type.semantic() == MachineSemantic::kUint32);
+ DCHECK(machine_type.representation() != MachineRepresentation::kBit ||
+ input_type->Is(Type::Boolean()));
(*types)[i] = machine_type;
}
}
« no previous file with comments | « src/compiler/code-generator.cc ('k') | test/mjsunit/compiler/regress-664490.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698