Changeset 182483 in webkit for trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
- Timestamp:
- Apr 7, 2015, 12:41:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
r166948 r182483 1 1 /* 2 * Copyright (C) 2013 , 2014Apple Inc. All rights reserved.2 * Copyright (C) 2013-2015 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 30 30 31 31 #include "LLVMAPI.h" 32 #include "Options.h" 32 33 #include <pthread.h> 34 #include <wtf/DataLog.h> 33 35 34 36 namespace JSC { 35 37 36 38 static pthread_once_t initializeLLVMOnceKey = PTHREAD_ONCE_INIT; 39 40 static void initializeLLVMImpl() 41 { 42 const bool verbose = 43 Options::verboseFTLCompilation() 44 || Options::showFTLDisassembly() 45 || Options::verboseFTLFailure() 46 || Options::verboseCompilation() 47 || Options::showDFGDisassembly() 48 || Options::showDisassembly(); 49 50 LLVMInitializerFunction initializer = getLLVMInitializerFunction(verbose); 51 if (!initializer) 52 return; 53 54 bool enableFastISel = Options::enableLLVMFastISel(); 55 llvm = initializer(WTFLogAlwaysAndCrash, &enableFastISel); 56 if (!llvm) { 57 if (verbose) 58 dataLog("LLVM initilization failed.\n"); 59 } 60 if (Options::enableLLVMFastISel() && !enableFastISel) { 61 if (verbose) 62 dataLog("Fast ISel requested but LLVM not new enough.\n"); 63 } 64 65 enableLLVMFastISel = enableFastISel; 66 } 37 67 38 68 bool initializeLLVM()
Note:
See TracChangeset
for help on using the changeset viewer.