| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index 1871822d617663ee9a38fe6db1df6b5ff100f235..94e800a27c0a4c94b06085672de6dffdf9c16902 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -1175,20 +1175,7 @@ Handle<Object> GetFunctionArguments(Isolate* isolate,
|
| return ArgumentsForInlinedFunction(frame, function, function_index);
|
| }
|
|
|
| - if (!frame->is_optimized()) {
|
| - // If there is an arguments variable in the stack, we return that.
|
| - Handle<ScopeInfo> scope_info(function->shared()->scope_info());
|
| - int index = scope_info->StackSlotIndex(
|
| - isolate->heap()->arguments_string());
|
| - if (index >= 0) {
|
| - Handle<Object> arguments(frame->GetExpression(index), isolate);
|
| - if (!arguments->IsArgumentsMarker()) return arguments;
|
| - }
|
| - }
|
| -
|
| - // If there is no arguments variable in the stack or we have an
|
| - // optimized frame, we find the frame that holds the actual arguments
|
| - // passed to the function.
|
| + // Find the frame that holds the actual arguments passed to the function.
|
| it.AdvanceToArgumentsFrame();
|
| frame = it.frame();
|
|
|
|
|