Changeset 262096 in webkit for trunk/Source/JavaScriptCore/shell
- Timestamp:
- May 22, 2020, 10:55:53 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/shell/PlatformPlayStation.cmake
r256930 r262096 20 20 set(PLAYSTATION_jsc_PROCESS_NAME "JSCShell") 21 21 set(PLAYSTATION_jsc_MAIN_THREAD_NAME "JSCShell") 22 23 # Set the debugger working directory for Visual Studio 24 if (${CMAKE_GENERATOR} MATCHES "Visual Studio") 25 set_target_properties(jsc PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") 26 endif () -
trunk/Source/JavaScriptCore/shell/playstation/Initializer.cpp
r245600 r262096 30 30 #include <dlfcn.h> 31 31 32 static void loadLibraryOrExit(const char* name) 33 { 34 if (!dlopen(name, RTLD_NOW)) { 35 fprintf(stderr, "Failed to load %s.\n", name); 36 exit(EXIT_FAILURE); 37 } 38 } 39 32 40 __attribute__((constructor(101))) 33 41 static void initializer(void) 34 42 { 35 void* handle = dlopen("SystemServices", RTLD_NOW); 36 if (!handle) 37 exit(1); 38 handle = dlopen("Perf", RTLD_NOW); 39 if (!handle) 40 exit(1); 41 handle = dlopen("PosixWebKit", RTLD_NOW); 42 if (!handle) 43 exit(1); 43 loadLibraryOrExit("SystemServices"); 44 loadLibraryOrExit("Perf"); 45 loadLibraryOrExit("PosixWebKit"); 46 loadLibraryOrExit("libJavaScriptCore"); 44 47 }
Note:
See TracChangeset
for help on using the changeset viewer.