| 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 10159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10170 // Return element value from indexed interceptor. | 10170 // Return element value from indexed interceptor. |
| 10171 // args[0]: object | 10171 // args[0]: object |
| 10172 // args[1]: index | 10172 // args[1]: index |
| 10173 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { | 10173 RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugIndexedInterceptorElementValue) { |
| 10174 HandleScope scope(isolate); | 10174 HandleScope scope(isolate); |
| 10175 ASSERT(args.length() == 2); | 10175 ASSERT(args.length() == 2); |
| 10176 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 10176 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| 10177 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); | 10177 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); |
| 10178 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); | 10178 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); |
| 10179 | 10179 |
| 10180 return obj->GetElementWithInterceptor(*obj, index); | 10180 return obj->GetElementWithInterceptor(*obj, index, isolate); |
| 10181 } | 10181 } |
| 10182 | 10182 |
| 10183 | 10183 |
| 10184 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { | 10184 RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckExecutionState) { |
| 10185 ASSERT(args.length() >= 1); | 10185 ASSERT(args.length() >= 1); |
| 10186 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); | 10186 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| 10187 // Check that the break id is valid. | 10187 // Check that the break id is valid. |
| 10188 if (isolate->debug()->break_id() == 0 || | 10188 if (isolate->debug()->break_id() == 0 || |
| 10189 break_id != isolate->debug()->break_id()) { | 10189 break_id != isolate->debug()->break_id()) { |
| 10190 return isolate->Throw( | 10190 return isolate->Throw( |
| (...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13292 // Handle last resort GC and make sure to allow future allocations | 13292 // Handle last resort GC and make sure to allow future allocations |
| 13293 // to grow the heap without causing GCs (if possible). | 13293 // to grow the heap without causing GCs (if possible). |
| 13294 isolate->counters()->gc_last_resort_from_js()->Increment(); | 13294 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 13295 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 13295 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 13296 "Runtime::PerformGC"); | 13296 "Runtime::PerformGC"); |
| 13297 } | 13297 } |
| 13298 } | 13298 } |
| 13299 | 13299 |
| 13300 | 13300 |
| 13301 } } // namespace v8::internal | 13301 } } // namespace v8::internal |
| OLD | NEW |