OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 10860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10871 // args[0]: object | 10871 // args[0]: object |
10872 // args[1]: property name | 10872 // args[1]: property name |
10873 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { | 10873 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { |
10874 HandleScope scope(isolate); | 10874 HandleScope scope(isolate); |
10875 ASSERT(args.length() == 2); | 10875 ASSERT(args.length() == 2); |
10876 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 10876 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
10877 RUNTIME_ASSERT(obj->HasNamedInterceptor()); | 10877 RUNTIME_ASSERT(obj->HasNamedInterceptor()); |
10878 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 10878 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
10879 | 10879 |
10880 PropertyAttributes attributes; | 10880 PropertyAttributes attributes; |
10881 return obj->GetPropertyWithInterceptor(*obj, *name, &attributes); | 10881 Handle<Object> result = |
| 10882 JSObject::GetPropertyWithInterceptor(obj, obj, name, &attributes); |
| 10883 RETURN_IF_EMPTY_HANDLE(isolate, result); |
| 10884 return *result; |
10882 } | 10885 } |
10883 | 10886 |
10884 | 10887 |
10885 // Return element value from indexed interceptor. | 10888 // Return element value from indexed interceptor. |
10886 // args[0]: object | 10889 // args[0]: object |
10887 // args[1]: index | 10890 // args[1]: index |
10888 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { | 10891 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { |
10889 HandleScope scope(isolate); | 10892 HandleScope scope(isolate); |
10890 ASSERT(args.length() == 2); | 10893 ASSERT(args.length() == 2); |
10891 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 10894 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
(...skipping 3914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14806 // Handle last resort GC and make sure to allow future allocations | 14809 // Handle last resort GC and make sure to allow future allocations |
14807 // to grow the heap without causing GCs (if possible). | 14810 // to grow the heap without causing GCs (if possible). |
14808 isolate->counters()->gc_last_resort_from_js()->Increment(); | 14811 isolate->counters()->gc_last_resort_from_js()->Increment(); |
14809 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 14812 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
14810 "Runtime::PerformGC"); | 14813 "Runtime::PerformGC"); |
14811 } | 14814 } |
14812 } | 14815 } |
14813 | 14816 |
14814 | 14817 |
14815 } } // namespace v8::internal | 14818 } } // namespace v8::internal |
OLD | NEW |