Index: src/compiler/machine-operator.cc |
diff --git a/src/compiler/machine-operator.cc b/src/compiler/machine-operator.cc |
index 74ddd7a3da4663feeaf6bb8b1478aa2109c701a1..d1da6848b00baf523be342ff7ab67516df49effe 100644 |
--- a/src/compiler/machine-operator.cc |
+++ b/src/compiler/machine-operator.cc |
@@ -611,6 +611,13 @@ struct MachineOperatorGlobalCache { |
0, 0, 0, 0, 0) {} |
}; |
DebugBreakOperator kDebugBreak; |
+ |
+ struct UnsafePointerAddOperator final : public Operator { |
+ UnsafePointerAddOperator() |
+ : Operator(IrOpcode::kUnsafePointerAdd, Operator::kKontrol, |
+ "UnsafePointerAdd", 2, 1, 1, 1, 1, 0) {} |
+ }; |
+ UnsafePointerAddOperator kUnsafePointerAdd; |
}; |
struct CommentOperator : public Operator1<const char*> { |
@@ -728,6 +735,10 @@ const Operator* MachineOperatorBuilder::Store(StoreRepresentation store_rep) { |
return nullptr; |
} |
+const Operator* MachineOperatorBuilder::UnsafePointerAdd() { |
+ return &cache_.kUnsafePointerAdd; |
+} |
+ |
const Operator* MachineOperatorBuilder::DebugBreak() { |
return &cache_.kDebugBreak; |
} |