| Index: src/compiler/operator.h
|
| diff --git a/src/compiler/operator.h b/src/compiler/operator.h
|
| index d0597522a05de8aa165098f197a40af38e6a0462..67f38ede43f162b4692624d480d9e1e730922438 100644
|
| --- a/src/compiler/operator.h
|
| +++ b/src/compiler/operator.h
|
| @@ -269,6 +269,13 @@ class Operator1 : public Operator {
|
| // Type definitions for operators with specific types of parameters.
|
| typedef Operator1<PrintableUnique<Name> > NameOperator;
|
|
|
| +
|
| +// Helper to extract parameters from Operator1<*> operator.
|
| +template <typename T>
|
| +static inline T OpParameter(const Operator* op) {
|
| + return reinterpret_cast<const Operator1<T>*>(op)->parameter();
|
| +}
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|