| Index: src/compiler/common-operator.cc
|
| diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
|
| index e7d583f831df475fae0edbd4f6c37f36acea7b8c..67f2faa7a0a0213fc0b17b5c8f63e68387682c47 100644
|
| --- a/src/compiler/common-operator.cc
|
| +++ b/src/compiler/common-operator.cc
|
| @@ -492,6 +492,23 @@ const Operator* CommonOperatorBuilder::Projection(size_t index) {
|
| index); // parameter
|
| }
|
|
|
| +
|
| +const Operator* CommonOperatorBuilder::ResizeMergeOrPhi(const Operator* op,
|
| + int size) {
|
| + if (op->opcode() == IrOpcode::kPhi) {
|
| + return Phi(OpParameter<MachineType>(op), size);
|
| + } else if (op->opcode() == IrOpcode::kEffectPhi) {
|
| + return EffectPhi(size);
|
| + } else if (op->opcode() == IrOpcode::kMerge) {
|
| + return Merge(size);
|
| + } else if (op->opcode() == IrOpcode::kLoop) {
|
| + return Loop(size);
|
| + } else {
|
| + UNREACHABLE();
|
| + return nullptr;
|
| + }
|
| +}
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|