| 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 10870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10881 // args[0]: object | 10881 // args[0]: object |
| 10882 // args[1]: property name | 10882 // args[1]: property name |
| 10883 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { | 10883 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugNamedInterceptorPropertyValue) { |
| 10884 HandleScope scope(isolate); | 10884 HandleScope scope(isolate); |
| 10885 ASSERT(args.length() == 2); | 10885 ASSERT(args.length() == 2); |
| 10886 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 10886 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| 10887 RUNTIME_ASSERT(obj->HasNamedInterceptor()); | 10887 RUNTIME_ASSERT(obj->HasNamedInterceptor()); |
| 10888 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 10888 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
| 10889 | 10889 |
| 10890 PropertyAttributes attributes; | 10890 PropertyAttributes attributes; |
| 10891 return obj->GetPropertyWithInterceptor(*obj, *name, &attributes); | 10891 Handle<Object> result = |
| 10892 JSObject::GetPropertyWithInterceptor(obj, obj, name, &attributes); |
| 10893 RETURN_IF_EMPTY_HANDLE(isolate, result); |
| 10894 return *result; |
| 10892 } | 10895 } |
| 10893 | 10896 |
| 10894 | 10897 |
| 10895 // Return element value from indexed interceptor. | 10898 // Return element value from indexed interceptor. |
| 10896 // args[0]: object | 10899 // args[0]: object |
| 10897 // args[1]: index | 10900 // args[1]: index |
| 10898 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { | 10901 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { |
| 10899 HandleScope scope(isolate); | 10902 HandleScope scope(isolate); |
| 10900 ASSERT(args.length() == 2); | 10903 ASSERT(args.length() == 2); |
| 10901 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 10904 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| (...skipping 3917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14819 // Handle last resort GC and make sure to allow future allocations | 14822 // Handle last resort GC and make sure to allow future allocations |
| 14820 // to grow the heap without causing GCs (if possible). | 14823 // to grow the heap without causing GCs (if possible). |
| 14821 isolate->counters()->gc_last_resort_from_js()->Increment(); | 14824 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 14822 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 14825 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 14823 "Runtime::PerformGC"); | 14826 "Runtime::PerformGC"); |
| 14824 } | 14827 } |
| 14825 } | 14828 } |
| 14826 | 14829 |
| 14827 | 14830 |
| 14828 } } // namespace v8::internal | 14831 } } // namespace v8::internal |
| OLD | NEW |