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

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

Issue 1132423004: [turbofan] Add a Simplified::CheckMaps instruction. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 9b34668d5c4e43466364237260116646d75ef4ff..d9fd73eaec65affdfefd8330f480a9118330cdf5 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -234,6 +234,15 @@ PURE_OP_LIST(PURE)
#undef PURE
+const Operator* SimplifiedOperatorBuilder::CheckMaps(int map_count) {
+ DCHECK_GE(map_count, 1);
+ // TODO(turbofan): cache CheckMaps operators
+ return new (zone()) Operator1<int32_t>(
+ IrOpcode::kCheckMaps, Operator::kNoWrite | Operator::kNoThrow,
+ "CheckMaps", 1 + map_count, 1, 1, 0, 0, 1, map_count);
+}
+
+
const Operator* SimplifiedOperatorBuilder::ReferenceEqual(Type* type) {
// TODO(titzer): What about the type parameter?
return new (zone()) Operator(IrOpcode::kReferenceEqual,
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698