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

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

Issue 539933002: [turbofan] Make sure Operator is really immutable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/operator-properties-inl.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.h
diff --git a/src/compiler/simplified-operator.h b/src/compiler/simplified-operator.h
index e2ccd3b2c9c14fcc44753ed0ab386f8eba15b286..a28e28ed8b1778dcbce54edd3fa866872d1c7f41 100644
--- a/src/compiler/simplified-operator.h
+++ b/src/compiler/simplified-operator.h
@@ -81,17 +81,17 @@ struct StaticParameterTraits<ElementAccess> {
};
-inline const FieldAccess FieldAccessOf(Operator* op) {
+inline const FieldAccess FieldAccessOf(const Operator* op) {
DCHECK(op->opcode() == IrOpcode::kLoadField ||
op->opcode() == IrOpcode::kStoreField);
- return static_cast<Operator1<FieldAccess>*>(op)->parameter();
+ return OpParameter<FieldAccess>(op);
}
-inline const ElementAccess ElementAccessOf(Operator* op) {
+inline const ElementAccess ElementAccessOf(const Operator* op) {
DCHECK(op->opcode() == IrOpcode::kLoadElement ||
op->opcode() == IrOpcode::kStoreElement);
- return static_cast<Operator1<ElementAccess>*>(op)->parameter();
+ return OpParameter<ElementAccess>(op);
}
« no previous file with comments | « src/compiler/operator-properties-inl.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698