fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 1 | /* |
fpizlo@apple.com | 5d8d7f9 | 2017-08-06 04:43:37 +0000 | [diff] [blame] | 2 | * Copyright (C) 2013-2017 Apple Inc. All rights reserved. |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions |
| 6 | * are met: |
| 7 | * 1. Redistributions of source code must retain the above copyright |
| 8 | * notice, this list of conditions and the following disclaimer. |
| 9 | * 2. Redistributions in binary form must reproduce the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer in the |
| 11 | * documentation and/or other materials provided with the distribution. |
| 12 | * |
| 13 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY |
| 14 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR |
| 17 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 18 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 19 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 20 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 21 | * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | */ |
| 25 | |
ryanhaddad@apple.com | 22104f5 | 2016-09-28 17:08:17 +0000 | [diff] [blame] | 26 | #pragma once |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 27 | |
| 28 | #include "JSCJSValue.h" |
| 29 | |
| 30 | namespace JSC { |
| 31 | |
fpizlo@apple.com | 836099a | 2014-02-05 01:03:21 +0000 | [diff] [blame] | 32 | class CodeBlock; |
| 33 | class FunctionExecutable; |
| 34 | |
| 35 | JS_EXPORT_PRIVATE FunctionExecutable* getExecutableForFunction(JSValue theFunctionValue); |
| 36 | JS_EXPORT_PRIVATE CodeBlock* getSomeBaselineCodeBlockForFunction(JSValue theFunctionValue); |
| 37 | |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 38 | JS_EXPORT_PRIVATE JSValue numberOfDFGCompiles(JSValue function); |
| 39 | JS_EXPORT_PRIVATE JSValue setNeverInline(JSValue function); |
mark.lam@apple.com | 49e71b9 | 2015-08-28 05:59:44 +0000 | [diff] [blame] | 40 | JS_EXPORT_PRIVATE JSValue setNeverOptimize(JSValue function); |
msaboff@apple.com | 6895392 | 2014-05-07 00:34:34 +0000 | [diff] [blame] | 41 | JS_EXPORT_PRIVATE JSValue optimizeNextInvocation(JSValue function); |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 42 | |
msaboff@apple.com | f046795 | 2015-10-24 01:45:30 +0000 | [diff] [blame] | 43 | JS_EXPORT_PRIVATE JSValue failNextNewCodeBlock(ExecState*); |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 44 | JS_EXPORT_PRIVATE JSValue numberOfDFGCompiles(ExecState*); |
| 45 | JS_EXPORT_PRIVATE JSValue setNeverInline(ExecState*); |
mark.lam@apple.com | 49e71b9 | 2015-08-28 05:59:44 +0000 | [diff] [blame] | 46 | JS_EXPORT_PRIVATE JSValue setNeverOptimize(ExecState*); |
commit-queue@webkit.org | 91b902c | 2016-08-20 02:00:44 +0000 | [diff] [blame] | 47 | JS_EXPORT_PRIVATE JSValue setCannotUseOSRExitFuzzing(ExecState*); |
msaboff@apple.com | 6895392 | 2014-05-07 00:34:34 +0000 | [diff] [blame] | 48 | JS_EXPORT_PRIVATE JSValue optimizeNextInvocation(ExecState*); |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 49 | |
fpizlo@apple.com | 9f1dad4 | 2014-07-18 04:34:16 +0000 | [diff] [blame] | 50 | JS_EXPORT_PRIVATE unsigned numberOfExceptionFuzzChecks(); |
fpizlo@apple.com | 616e7b5 | 2015-03-26 01:26:56 +0000 | [diff] [blame] | 51 | JS_EXPORT_PRIVATE unsigned numberOfExecutableAllocationFuzzChecks(); |
fpizlo@apple.com | 314e698 | 2015-07-09 19:43:28 +0000 | [diff] [blame] | 52 | JS_EXPORT_PRIVATE unsigned numberOfStaticOSRExitFuzzChecks(); |
fpizlo@apple.com | f19f014 | 2015-07-03 01:48:01 +0000 | [diff] [blame] | 53 | JS_EXPORT_PRIVATE unsigned numberOfOSRExitFuzzChecks(); |
fpizlo@apple.com | 9f1dad4 | 2014-07-18 04:34:16 +0000 | [diff] [blame] | 54 | |
fpizlo@apple.com | bc16ddb | 2016-09-06 01:02:22 +0000 | [diff] [blame] | 55 | JS_EXPORT_PRIVATE void finalizeStatsAtEndOfTesting(); |
| 56 | |
fpizlo@apple.com | 5d8d7f9 | 2017-08-06 04:43:37 +0000 | [diff] [blame] | 57 | JS_EXPORT_PRIVATE void waitForVMDestruction(); |
| 58 | |
fpizlo@apple.com | 44225e6 | 2013-09-05 03:09:57 +0000 | [diff] [blame] | 59 | } // namespace JSC |