| Index: src/compiler/bytecode-graph-builder.cc
|
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
|
| index bfbf371666ac3c33501dc3babc369acaed7753a2..af1c574fc4bcc4cd25dee7a78614b864509b989a 100644
|
| --- a/src/compiler/bytecode-graph-builder.cc
|
| +++ b/src/compiler/bytecode-graph-builder.cc
|
| @@ -928,15 +928,25 @@ void BytecodeGraphBuilder::VisitCreateClosureWide(
|
| }
|
|
|
|
|
| +void BytecodeGraphBuilder::BuildCreateArguments(
|
| + CreateArgumentsParameters::Type type,
|
| + const interpreter::BytecodeArrayIterator& iterator) {
|
| + FrameStateBeforeAndAfter states(this, iterator);
|
| + const Operator* op = javascript()->CreateArguments(type, 0);
|
| + Node* object = NewNode(op, GetFunctionClosure());
|
| + environment()->BindAccumulator(object, &states);
|
| +}
|
| +
|
| +
|
| void BytecodeGraphBuilder::VisitCreateMappedArguments(
|
| const interpreter::BytecodeArrayIterator& iterator) {
|
| - UNIMPLEMENTED();
|
| + BuildCreateArguments(CreateArgumentsParameters::kMappedArguments, iterator);
|
| }
|
|
|
|
|
| void BytecodeGraphBuilder::VisitCreateUnmappedArguments(
|
| const interpreter::BytecodeArrayIterator& iterator) {
|
| - UNIMPLEMENTED();
|
| + BuildCreateArguments(CreateArgumentsParameters::kUnmappedArguments, iterator);
|
| }
|
|
|
|
|
|
|