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

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

Issue 2196653002: [turbofan] Introduce a dedicated CheckMaps simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_JSNativeContextSpecialization_NonElementKeyedAccess
Patch Set: Created 4 years, 5 months 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/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 8e18b673b616559eabf8b743348c6163d05ddcbc..66cfbb7be77a3fad7b5a795920115a72a6ad3ff7 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -507,6 +507,18 @@ const Operator* SimplifiedOperatorBuilder::CheckedInt32Mul(
return nullptr;
}
+const Operator* SimplifiedOperatorBuilder::CheckMaps(int map_input_count) {
+ // TODO(bmeurer): Cache the most important versions of this operator.
+ DCHECK_LT(0, map_input_count);
+ int const value_input_count = 1 + map_input_count;
+ return new (zone()) Operator1<int>( // --
+ IrOpcode::kCheckMaps, // opcode
+ Operator::kNoThrow | Operator::kNoWrite, // flags
+ "CheckMaps", // name
+ value_input_count, 1, 1, 0, 1, 0, // counts
+ map_input_count); // parameter
+}
+
const Operator* SimplifiedOperatorBuilder::CheckFloat64Hole(
CheckFloat64HoleMode mode) {
switch (mode) {

Powered by Google App Engine
This is Rietveld 408576698