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

Unified Diff: src/compiler/node-properties.h

Issue 1366753003: [turbofan] Make Node::set_op safer via wrapper. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 3 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/node.h ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node-properties.h
diff --git a/src/compiler/node-properties.h b/src/compiler/node-properties.h
index 4fa160da36cb4a0caf68f9f2c6ce17641600b598..44f9b7974c8936fc6ddfe5729182ea65976e4f34 100644
--- a/src/compiler/node-properties.h
+++ b/src/compiler/node-properties.h
@@ -94,6 +94,10 @@ class NodeProperties final {
static void ReplaceUses(Node* node, Node* value, Node* effect = nullptr,
Node* success = nullptr, Node* exception = nullptr);
+ // Safe wrapper to mutate the operator of a node. Checks that the node is
+ // currently in a state that satisfies constraints of the new operator.
+ static void ChangeOp(Node* node, const Operator* new_op);
+
// ---------------------------------------------------------------------------
// Miscellaneous utilities.
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698