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

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

Issue 2495243002: [turbofan] Fix deoptimization of boolean bit constants. (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 a2b67db13bf04862ca2daaa571b233d395f8996b..a1cd46749617c0e148fedd9e979c72b6048e6bd1 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