Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakracore: Updated chakracore to release/2.0
Browse files Browse the repository at this point in the history
Updated chakracore to chakra-core/ChakraCore@95dde93

PR-URL: #180
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
  • Loading branch information
mrkmarron authored and kunalspathak committed Mar 8, 2017
1 parent c51a730 commit cd04a3d
Show file tree
Hide file tree
Showing 661 changed files with 41,425 additions and 3,765 deletions.
10 changes: 5 additions & 5 deletions deps/chakrashim/core/Build/Common.Build.Default.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<!-- Auto tool set selection -->
<PropertyGroup>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='11.0'">v110</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='12.0'">v120</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='15.0'">v141</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='11.0' or '$(MSBuildToolsVersion)'=='11.0'">v110</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='12.0' or '$(MSBuildToolsVersion)'=='12.0'">v120</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='14.0' or '$(MSBuildToolsVersion)'=='14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='15.0' or '$(MSBuildToolsVersion)'=='15.0'">v141</PlatformToolset>
</PropertyGroup>

<!-- Default ChakraDevConfigDir -->
Expand Down Expand Up @@ -57,7 +57,7 @@
<PropertyGroup>
<OutBaseDir Condition="'$(OutBaseDir)'!=''">$(OutBaseDir)\$(SolutionName)</OutBaseDir>
<OutBaseDir Condition="'$(OutBaseDir)'==''">$(SolutionDir)VcBuild</OutBaseDir>
<OutBaseDir Condition="'$(Clang)'!=''">$(OutBaseDir).$(Clang)</OutBaseDir>
<OutBaseDir Condition="'$(Clang)'!=''">$(OutBaseDir).$(Clang)</OutBaseDir>
<OutBaseDir Condition="'$(BuildJIT)'=='false'">$(OutBaseDir).NoJIT</OutBaseDir>
<OutBaseDir Condition="'$(ForceSWB)'=='true'">$(OutBaseDir).SWB</OutBaseDir>
<IntBaseDir Condition="'$(IntBaseDir)'==''">$(OutBaseDir)</IntBaseDir>
Expand Down
39 changes: 12 additions & 27 deletions deps/chakrashim/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,18 @@ if(ICU_INCLUDE_PATH)
set(ICU_CC_PATH "${ICU_INCLUDE_PATH}/../lib/")
find_library(ICUUC icuuc PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
find_library(ICU18 icui18n PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
find_library(ICUDATA icudata PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
if(ICUUC)
message("found libraries on ${ICU_CC_PATH}")
message("-- found ICU libs: ${ICU_CC_PATH}")
find_library(ICUDATA icudata PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
if (NOT ICUDATA)
set(ICUDATA "")
endif()
set(ICULIB
${ICUUC}
${ICU18}
${ICUDATA}
)
endif()
elseif(CC_EMBED_ICU)
set(ICU_CC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../deps/icu/source/output/lib/")
find_library(ICUUC icuuc PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
find_library(ICU18 icui18n PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
find_library(ICUDATA icudata PATHS ${ICU_CC_PATH} NO_DEFAULT_PATH)
set(ICULIB
${ICUUC}
${ICU18}
${ICUDATA}
)
endif()

set(CLR_CMAKE_PLATFORM_XPLAT 1)
Expand Down Expand Up @@ -186,30 +179,22 @@ elseif(CC_TARGET_OS_OSX)
)

if(NOT ICULIB)
if(NOT NO_ICU_PATH_GIVEN)
add_definitions(-DHAS_REAL_ICU=1)
if(NOT CC_EMBED_ICU)
set(ICULIB "icucore")
add_definitions(
-DU_DISABLE_RENAMING=1 #in case we link against to an older binary of icu
)
endif()
message("using ICU from system default: ${ICULIB}")
endif()
set(NO_ICU_PATH_GIVEN 1)
message("-- Couldn't find ICU. Falling back to --no-icu build")
endif()

if(NOT CC_XCODE_PROJECT)
set(OSX_DEPLOYMENT_TARGET "$ENV{MACOSX_DEPLOYMENT_TARGET} CC")
if (${OSX_DEPLOYMENT_TARGET} STREQUAL " CC")
set(OSX_DEPLOYMENT_TARGET "10.7")
add_compile_options(-mmacosx-version-min=10.7)
set(OSX_DEPLOYMENT_TARGET "10.9")
add_compile_options(-mmacosx-version-min=10.9)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
-mmacosx-version-min=10.7")
-mmacosx-version-min=10.9 -std=gnu99")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-mmacosx-version-min=10.7")
-mmacosx-version-min=10.9 -std=gnu++11")
else()
set(OSX_DEPLOYMENT_TARGET "$ENV{MACOSX_DEPLOYMENT_TARGET}")
message(WARNING "!! macOS Deployment Target was set to $ENV{MACOSX_DEPLOYMENT_TARGET}. Using it as is.")
message(WARNING "-- !! macOS Deployment Target was set to $ENV{MACOSX_DEPLOYMENT_TARGET}. Using it as is.")
endif()
endif()
else()
Expand Down
5 changes: 4 additions & 1 deletion deps/chakrashim/core/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ if(NOT CC_TARGET_OS_ANDROID)
endif()

add_subdirectory (ch)
add_subdirectory (ChakraCore)

if (NOT STATIC_LIBRARY)
add_subdirectory (ChakraCore)
endif()
171 changes: 60 additions & 111 deletions deps/chakrashim/core/bin/ChakraCore/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,55 +1,11 @@
if(BuildJIT)
set(chakra_backend_objects $<TARGET_OBJECTS:Chakra.Backend>)
endif()

if(CC_TARGETS_AMD64)
set(wasm_objects $<TARGET_OBJECTS:Chakra.WasmReader>)
set(wasm_includes ${CHAKRACORE_SOURCE_DIR}/lib/WasmReader)
endif()

add_library (ChakraCoreStatic STATIC
$<TARGET_OBJECTS:Chakra.Pal>
$<TARGET_OBJECTS:Chakra.Common.Core>
$<TARGET_OBJECTS:Chakra.Jsrt>
$<TARGET_OBJECTS:Chakra.Jsrt.Core>
${chakra_backend_objects}
$<TARGET_OBJECTS:Chakra.Common.Common>
$<TARGET_OBJECTS:Chakra.Common.Codex>
$<TARGET_OBJECTS:Chakra.Common.DataStructures>
$<TARGET_OBJECTS:Chakra.Common.Exceptions>
$<TARGET_OBJECTS:Chakra.Common.Memory>
$<TARGET_OBJECTS:Chakra.Common.Util>
$<TARGET_OBJECTS:Chakra.Runtime.Base>
$<TARGET_OBJECTS:Chakra.Runtime.ByteCode>
$<TARGET_OBJECTS:Chakra.Runtime.Debug>
$<TARGET_OBJECTS:Chakra.Runtime.Language>
$<TARGET_OBJECTS:Chakra.Runtime.Library>
$<TARGET_OBJECTS:Chakra.Runtime.Math>
$<TARGET_OBJECTS:Chakra.Runtime.Types>
$<TARGET_OBJECTS:Chakra.Runtime.PlatformAgnostic>
$<TARGET_OBJECTS:Chakra.Parser>
${wasm_objects}
add_library (ChakraCore SHARED
ChakraCoreShared.cpp
ConfigParserExternals.cpp
TestHooks.cpp
)

if(CC_TARGET_OS_OSX)
target_link_libraries(ChakraCoreStatic
"-framework CoreFoundation"
"-framework Security"
)
else()
if (NOT CC_TARGET_OS_ANDROID)
set(PTHREAD "pthread")
endif()

target_link_libraries(ChakraCoreStatic
${CC_LTO_ENABLED}
${PTHREAD}
"dl"
)
endif()

target_include_directories (
ChakraCoreStatic PUBLIC
ChakraCore PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CHAKRACORE_SOURCE_DIR}/lib/Backend
${CHAKRACORE_SOURCE_DIR}/lib/Common
Expand All @@ -58,76 +14,69 @@ target_include_directories (
${CHAKRACORE_SOURCE_DIR}/lib/Parser
${CHAKRACORE_SOURCE_DIR}/lib/Jsrt
${wasm_includes}
"-fvisibility=hidden"
)

if (NOT STATIC_LIBRARY)
add_library (ChakraCore SHARED
ChakraCoreShared.cpp
ConfigParserExternals.cpp
TestHooks.cpp
)
#
# Link step for the ChakraCore shared library
#
# External libraries we link with are the following:
# pthread: For threading
# stdc++/gcc_s: C++ runtime code
# dl: For shared library loading related functions
#
if(CC_TARGET_OS_ANDROID OR CC_TARGET_OS_LINUX)
set(LINKER_START_GROUP
-fPIC
-Wl,--start-group
-Wl,--whole-archive
)

#
# Link step for the ChakraCore shared library
#
# External libraries we link with are the following:
# pthread: For threading
# stdc++/gcc_s: C++ runtime code
# dl: For shared library loading related functions
#
if(CC_TARGET_OS_ANDROID OR CC_TARGET_OS_LINUX)
set(LINKER_START_GROUP
-fPIC
-Wl,--start-group
-Wl,--whole-archive
)
set(LINKER_END_GROUP
-Wl,--no-whole-archive
-Wl,--end-group
-static-libstdc++
)
elseif(CC_TARGET_OS_OSX)
set(LINKER_START_GROUP -Wl,-force_load,)
endif()

set(LINKER_END_GROUP
-Wl,--no-whole-archive
-Wl,--end-group
-static-libstdc++
)
elseif(CC_TARGET_OS_OSX)
set(LINKER_START_GROUP -Wl,-force_load,)
endif()
# common link deps
set(lib_target "${lib_target}"
-Wl,-undefined,error
${LINKER_START_GROUP}
ChakraCoreStatic
${LINKER_END_GROUP}
pthread
dl
${ICULIB}
)

# common link deps
if(CC_TARGET_OS_ANDROID OR CC_TARGET_OS_LINUX)
set(lib_target "${lib_target}"
-Wl,-undefined,error
${LINKER_START_GROUP}
ChakraCoreStatic
${LINKER_END_GROUP}
pthread
dl
${ICULIB}
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libChakraCoreLib.version
# reduce link time memory usage
-Xlinker --no-keep-memory
)

if(CC_TARGET_OS_ANDROID OR CC_TARGET_OS_LINUX)
set(lib_target "${lib_target}"
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libChakraCoreLib.version
# reduce link time memory usage
-Xlinker --no-keep-memory
)
elseif(CC_TARGET_OS_OSX)
if(CC_TARGETS_X86)
set(lib_target "${lib_target} -arch i386")
elseif(CC_TARGETS_ARM)
set(lib_target "${lib_target} -arch arm")
endif()
elseif(CC_TARGET_OS_OSX)
if(CC_TARGETS_X86)
set(lib_target "${lib_target} -arch i386")
elseif(CC_TARGETS_ARM)
set(lib_target "${lib_target} -arch arm")
endif()
endif()

target_link_libraries (ChakraCore
${lib_target}
${CC_LTO_ENABLED}
)
target_link_libraries (ChakraCore
${lib_target}
${CC_LTO_ENABLED}
)

if(NOT CC_XCODE_PROJECT)
# Post build step to copy the built shared library
# to out/{BUILD_TYPE}/ (or whatever the CMakeBuildDir is)
add_custom_command(TARGET ChakraCore POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CHAKRACORE_BINARY_DIR}/bin/ChakraCore/libChakraCore.${DYN_LIB_EXT}"
${CHAKRACORE_BINARY_DIR}/
)
endif()
if(NOT CC_XCODE_PROJECT)
# Post build step to copy the built shared library
# to out/{BUILD_TYPE}/ (or whatever the CMakeBuildDir is)
add_custom_command(TARGET ChakraCore POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CHAKRACORE_BINARY_DIR}/bin/ChakraCore/libChakraCore.${DYN_LIB_EXT}"
${CHAKRACORE_BINARY_DIR}/
)
endif()
1 change: 0 additions & 1 deletion deps/chakrashim/core/bin/ChakraCore/ChakraCore.def
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ JsTTDCreateContext
JsTTDNotifyContextDestroy
JsTTDStart
JsTTDStop
JsTTDEmitRecording

JsTTDPauseTimeTravelBeforeRuntimeOperation
JsTTDReStartTimeTravelAfterRuntimeOperation
Expand Down
4 changes: 4 additions & 0 deletions deps/chakrashim/core/bin/NativeTests/NativeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
#include "stdafx.h"

#define CATCH_CONFIG_RUNNER
#pragma warning(push)
// conversion from 'int' to 'char', possible loss of data
#pragma warning(disable:4244)
#include "catch.hpp"
#pragma warning(pop)

// Use nativetests.exe -? to get all command line options

Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/core/bin/ch/ChakraRtInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ bool ChakraRTInterface::LoadChakraDll(ArgInfo* argInfo, HINSTANCE *outLibrary)

m_jsApiHooks.pfJsrtTTDStart = (JsAPIHooks::JsrtTTDStartPtr)GetChakraCoreSymbol(library, "JsTTDStart");
m_jsApiHooks.pfJsrtTTDStop = (JsAPIHooks::JsrtTTDStopPtr)GetChakraCoreSymbol(library, "JsTTDStop");
m_jsApiHooks.pfJsrtTTDEmitRecording = (JsAPIHooks::JsrtTTDEmitRecordingPtr)GetChakraCoreSymbol(library, "JsTTDEmitRecording");

m_jsApiHooks.pfJsrtTTDNotifyYield = (JsAPIHooks::JsrtTTDNotifyYieldPtr)GetChakraCoreSymbol(library, "JsTTDNotifyYield");
m_jsApiHooks.pfJsrtTTDHostExit = (JsAPIHooks::JsrtTTDHostExitPtr)GetChakraCoreSymbol(library, "JsTTDHostExit");
Expand Down
15 changes: 4 additions & 11 deletions deps/chakrashim/core/bin/ch/ChakraRtInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ struct JsAPIHooks
typedef JsErrorCode(WINAPI *JsrtCreateExternalArrayBuffer)(void *data, unsigned int byteLength, JsFinalizeCallback finalizeCallback, void *callbackState, JsValueRef *result);
typedef JsErrorCode(WINAPI *JsrtCreatePropertyId)(const char *name, size_t length, JsPropertyIdRef *propertyId);

typedef JsErrorCode(WINAPI *JsrtTTDCreateRecordRuntimePtr)(JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, size_t snapInterval, size_t snapHistoryLength, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
typedef JsErrorCode(WINAPI *JsrtTTDCreateReplayRuntimePtr)(JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, bool enableDebugging, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
typedef JsErrorCode(WINAPI *JsrtTTDCreateRecordRuntimePtr)(JsRuntimeAttributes attributes, size_t snapInterval, size_t snapHistoryLength, TTDOpenResourceStreamCallback openResourceStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
typedef JsErrorCode(WINAPI *JsrtTTDCreateReplayRuntimePtr)(JsRuntimeAttributes attributes, const char* infoUri, size_t infoUriCount, bool enableDebugging, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
typedef JsErrorCode(WINAPI *JsrtTTDCreateContextPtr)(JsRuntimeHandle runtime, bool useRuntimeTTDMode, JsContextRef *newContext);
typedef JsErrorCode(WINAPI *JsrtTTDNotifyContextDestroyPtr)(JsContextRef context);

typedef JsErrorCode(WINAPI *JsrtTTDSetIOCallbacksPtr)(JsRuntimeHandle runtime, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openTTDStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream);

typedef JsErrorCode(WINAPI *JsrtTTDStartPtr)();
typedef JsErrorCode(WINAPI *JsrtTTDStopPtr)();
typedef JsErrorCode(WINAPI *JsrtTTDEmitRecordingPtr)();

typedef JsErrorCode(WINAPI *JsrtTTDNotifyYieldPtr)();
typedef JsErrorCode(WINAPI *JsrtTTDHostExitPtr)(int statusCode);
Expand Down Expand Up @@ -174,11 +171,8 @@ struct JsAPIHooks
JsrtTTDCreateContextPtr pfJsrtTTDCreateContext;
JsrtTTDNotifyContextDestroyPtr pfJsrtTTDNotifyContextDestroy;

JsrtTTDSetIOCallbacksPtr pfJsrtTTDSetIOCallbacks;

JsrtTTDStartPtr pfJsrtTTDStart;
JsrtTTDStopPtr pfJsrtTTDStop;
JsrtTTDEmitRecordingPtr pfJsrtTTDEmitRecording;

JsrtTTDNotifyYieldPtr pfJsrtTTDNotifyYield;
JsrtTTDHostExitPtr pfJsrtTTDHostExit;
Expand Down Expand Up @@ -350,14 +344,13 @@ class ChakraRTInterface
static JsErrorCode WINAPI JsSetModuleHostInfo(JsModuleRecord requestModule, JsModuleHostInfoKind moduleHostInfo, void* hostInfo) { return HOOK_JS_API(SetModuleHostInfo(requestModule, moduleHostInfo, hostInfo)); }
static JsErrorCode WINAPI JsGetModuleHostInfo(JsModuleRecord requestModule, JsModuleHostInfoKind moduleHostInfo, void** hostInfo) { return HOOK_JS_API(GetModuleHostInfo(requestModule, moduleHostInfo, hostInfo)); }

static JsErrorCode WINAPI JsTTDCreateRecordRuntime(JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, size_t snapInterval, size_t snapHistoryLength, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API(TTDCreateRecordRuntime(attributes, infoUri, infoUriCount, snapInterval, snapHistoryLength, writeInitializeFunction, openResourceStream, readBytesFromStream, writeBytesToStream, flushAndCloseStream, threadService, runtime)); }
static JsErrorCode WINAPI JsTTDCreateReplayRuntime(JsRuntimeAttributes attributes, const byte* infoUri, size_t infoUriCount, JsTTDInitializeForWriteLogStreamCallback writeInitializeFunction, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API(TTDCreateReplayRuntime(attributes, infoUri, infoUriCount, false, writeInitializeFunction, openResourceStream, readBytesFromStream, writeBytesToStream, flushAndCloseStream, threadService, runtime)); }
static JsErrorCode WINAPI JsTTDCreateRecordRuntime(JsRuntimeAttributes attributes, size_t snapInterval, size_t snapHistoryLength, TTDOpenResourceStreamCallback openResourceStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API(TTDCreateRecordRuntime(attributes, snapInterval, snapHistoryLength, openResourceStream, writeBytesToStream, flushAndCloseStream, threadService, runtime)); }
static JsErrorCode WINAPI JsTTDCreateReplayRuntime(JsRuntimeAttributes attributes, const char* infoUri, size_t infoUriCount, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime) { return HOOK_JS_API(TTDCreateReplayRuntime(attributes, infoUri, infoUriCount, false, openResourceStream, readBytesFromStream, flushAndCloseStream, threadService, runtime)); }
static JsErrorCode WINAPI JsTTDCreateContext(JsRuntimeHandle runtime, bool useRuntimeTTDMode, JsContextRef *newContext) { return HOOK_JS_API(TTDCreateContext(runtime, useRuntimeTTDMode, newContext)); }
static JsErrorCode WINAPI JsTTDNotifyContextDestroy(JsContextRef context) { return HOOK_JS_API(TTDNotifyContextDestroy(context)); }

static JsErrorCode WINAPI JsTTDStart() { return HOOK_JS_API(TTDStart()); }
static JsErrorCode WINAPI JsTTDStop() { return HOOK_JS_API(TTDStop()); }
static JsErrorCode WINAPI JsTTDEmitRecording() { return HOOK_JS_API(TTDEmitRecording()); }

static JsErrorCode WINAPI JsTTDNotifyYield() { return HOOK_JS_API(TTDNotifyYield()); }
static JsErrorCode WINAPI JsTTDHostExit(int statusCode) { return HOOK_JS_API(TTDHostExit(statusCode)); }
Expand Down
Loading

0 comments on commit cd04a3d

Please sign in to comment.