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 11015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11026 | 11026 |
11027 // Return element value from indexed interceptor. | 11027 // Return element value from indexed interceptor. |
11028 // args[0]: object | 11028 // args[0]: object |
11029 // args[1]: index | 11029 // args[1]: index |
11030 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { | 11030 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { |
11031 HandleScope scope(isolate); | 11031 HandleScope scope(isolate); |
11032 ASSERT(args.length() == 2); | 11032 ASSERT(args.length() == 2); |
11033 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 11033 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
11034 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); | 11034 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); |
11035 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); | 11035 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); |
11036 | 11036 Handle<Object> result = JSObject::GetElementWithInterceptor(obj, obj, index); |
11037 return obj->GetElementWithInterceptor(*obj, index); | 11037 RETURN_IF_EMPTY_HANDLE(isolate, result); |
| 11038 return *result; |
11038 } | 11039 } |
11039 | 11040 |
11040 | 11041 |
11041 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { | 11042 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { |
11042 SealHandleScope shs(isolate); | 11043 SealHandleScope shs(isolate); |
11043 ASSERT(args.length() >= 1); | 11044 ASSERT(args.length() >= 1); |
11044 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); | 11045 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
11045 // Check that the break id is valid. | 11046 // Check that the break id is valid. |
11046 if (isolate->debug()->break_id() == 0 || | 11047 if (isolate->debug()->break_id() == 0 || |
11047 break_id != isolate->debug()->break_id()) { | 11048 break_id != isolate->debug()->break_id()) { |
(...skipping 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15107 // Handle last resort GC and make sure to allow future allocations | 15108 // Handle last resort GC and make sure to allow future allocations |
15108 // to grow the heap without causing GCs (if possible). | 15109 // to grow the heap without causing GCs (if possible). |
15109 isolate->counters()->gc_last_resort_from_js()->Increment(); | 15110 isolate->counters()->gc_last_resort_from_js()->Increment(); |
15110 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 15111 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
15111 "Runtime::PerformGC"); | 15112 "Runtime::PerformGC"); |
15112 } | 15113 } |
15113 } | 15114 } |
15114 | 15115 |
15115 | 15116 |
15116 } } // namespace v8::internal | 15117 } } // namespace v8::internal |
OLD | NEW |