| 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 14100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14111 RUNTIME_FUNCTION(MaybeObject*, Runtime_Has##Name) { \ | 14111 RUNTIME_FUNCTION(MaybeObject*, Runtime_Has##Name) { \ |
| 14112 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ | 14112 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
| 14113 return isolate->heap()->ToBoolean(obj->Has##Name()); \ | 14113 return isolate->heap()->ToBoolean(obj->Has##Name()); \ |
| 14114 } | 14114 } |
| 14115 | 14115 |
| 14116 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiElements) | 14116 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiElements) |
| 14117 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastObjectElements) | 14117 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastObjectElements) |
| 14118 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiOrObjectElements) | 14118 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastSmiOrObjectElements) |
| 14119 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastDoubleElements) | 14119 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastDoubleElements) |
| 14120 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastHoleyElements) | 14120 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastHoleyElements) |
| 14121 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastPackedElements) |
| 14121 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(DictionaryElements) | 14122 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(DictionaryElements) |
| 14122 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(NonStrictArgumentsElements) | 14123 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(NonStrictArgumentsElements) |
| 14123 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) | 14124 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalPixelElements) |
| 14124 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) | 14125 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalArrayElements) |
| 14125 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) | 14126 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalByteElements) |
| 14126 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) | 14127 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedByteElements) |
| 14127 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) | 14128 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalShortElements) |
| 14128 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) | 14129 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedShortElements) |
| 14129 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) | 14130 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalIntElements) |
| 14130 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) | 14131 ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(ExternalUnsignedIntElements) |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14404 // Handle last resort GC and make sure to allow future allocations | 14405 // Handle last resort GC and make sure to allow future allocations |
| 14405 // to grow the heap without causing GCs (if possible). | 14406 // to grow the heap without causing GCs (if possible). |
| 14406 isolate->counters()->gc_last_resort_from_js()->Increment(); | 14407 isolate->counters()->gc_last_resort_from_js()->Increment(); |
| 14407 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, | 14408 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 14408 "Runtime::PerformGC"); | 14409 "Runtime::PerformGC"); |
| 14409 } | 14410 } |
| 14410 } | 14411 } |
| 14411 | 14412 |
| 14412 | 14413 |
| 14413 } } // namespace v8::internal | 14414 } } // namespace v8::internal |
| OLD | NEW |