| Index: src/runtime/runtime-scopes.cc
|
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
|
| index 0d69d0a03cdf9534ed88a1275316dade496ce8c6..ff7e783393081cbe731a8d5f265a5b0fa852b773 100644
|
| --- a/src/runtime/runtime-scopes.cc
|
| +++ b/src/runtime/runtime-scopes.cc
|
| @@ -1082,7 +1082,16 @@ RUNTIME_FUNCTION(Runtime_StoreLookupSlot) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(Runtime_GetArgumentsProperty) {
|
| +RUNTIME_FUNCTION(Runtime_ArgumentsLength) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 0);
|
| + JavaScriptFrameIterator it(isolate);
|
| + JavaScriptFrame* frame = it.frame();
|
| + return Smi::FromInt(frame->GetArgumentsLength());
|
| +}
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_Arguments) {
|
| SealHandleScope shs(isolate);
|
| DCHECK(args.length() == 1);
|
| CONVERT_ARG_HANDLE_CHECKED(Object, raw_key, 0);
|
| @@ -1157,20 +1166,5 @@ RUNTIME_FUNCTION(Runtime_GetArgumentsProperty) {
|
| Object::GetProperty(isolate->initial_object_prototype(), key));
|
| return *result;
|
| }
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_ArgumentsLength) {
|
| - SealHandleScope shs(isolate);
|
| - DCHECK(args.length() == 0);
|
| - JavaScriptFrameIterator it(isolate);
|
| - JavaScriptFrame* frame = it.frame();
|
| - return Smi::FromInt(frame->GetArgumentsLength());
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_Arguments) {
|
| - SealHandleScope shs(isolate);
|
| - return __RT_impl_Runtime_GetArgumentsProperty(args, isolate);
|
| -}
|
| } // namespace internal
|
| } // namespace v8
|
|
|