Chromium Code Reviews| Index: src/runtime.cc |
| diff --git a/src/runtime.cc b/src/runtime.cc |
| index e6277060732e9d71feb9d592af657a3dff31e406..692c4547b9e2d3e038edbb8271ab4b36c2ac7d44 100644 |
| --- a/src/runtime.cc |
| +++ b/src/runtime.cc |
| @@ -2072,6 +2072,25 @@ RUNTIME_FUNCTION(Runtime_HomeObjectSymbol) { |
| } |
| +RUNTIME_FUNCTION(Runtime_LoadFromSuper) { |
| + HandleScope scope(isolate); |
| + DCHECK(args.length() == 3); |
| + CONVERT_ARG_HANDLE_CHECKED(JSObject, base_value, 0); |
| + CONVERT_ARG_HANDLE_CHECKED(Object, receiver, 1); |
| + CONVERT_ARG_HANDLE_CHECKED(Name, name, 2); |
| + |
| + LookupIterator it(receiver, name, base_value); |
| + it.LookupForRead(); |
|
Toon Verwaest
2014/09/15 11:57:20
I don't understand why you need this weird setup.
Dmitry Lomov (no reviews)
2014/09/15 12:31:12
Done.
|
| + Handle<Object> result; |
| + if (it.IsFound()) { |
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
| + Object::GetProperty(&it)); |
| + return *result; |
| + } |
| + return isolate->heap()->undefined_value(); |
| +} |
| + |
| + |
| RUNTIME_FUNCTION(Runtime_IsExtensible) { |
| SealHandleScope shs(isolate); |
| DCHECK(args.length() == 1); |