Changeset 262928 in webkit for trunk/Source/JavaScriptCore/dfg/DFGDriver.cpp
- Timestamp:
- Jun 11, 2020, 3:47:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGDriver.cpp
r261755 r262928 32 32 #include "DFGThunks.h" 33 33 #include "DFGWorklist.h" 34 #include "Function Whitelist.h"34 #include "FunctionAllowlist.h" 35 35 #include "JITCode.h" 36 36 #include "Options.h" … … 49 49 50 50 #if ENABLE(DFG_JIT) 51 static Function Whitelist& ensureGlobalDFGWhitelist()51 static FunctionAllowlist& ensureGlobalDFGAllowlist() 52 52 { 53 static LazyNeverDestroyed<Function Whitelist> dfgWhitelist;54 static std::once_flag initialize WhitelistFlag;55 std::call_once(initialize WhitelistFlag, [] {56 const char* function WhitelistFile = Options::dfgWhitelist();57 dfg Whitelist.construct(functionWhitelistFile);53 static LazyNeverDestroyed<FunctionAllowlist> dfgAllowlist; 54 static std::once_flag initializeAllowlistFlag; 55 std::call_once(initializeAllowlistFlag, [] { 56 const char* functionAllowlistFile = Options::dfgAllowlist(); 57 dfgAllowlist.construct(functionAllowlistFile); 58 58 }); 59 return dfg Whitelist;59 return dfgAllowlist; 60 60 } 61 61 … … 66 66 { 67 67 if (!Options::bytecodeRangeToDFGCompile().isInRange(codeBlock->instructionsSize()) 68 || !ensureGlobalDFG Whitelist().contains(codeBlock))68 || !ensureGlobalDFGAllowlist().contains(codeBlock)) 69 69 return CompilationFailed; 70 70
Note:
See TracChangeset
for help on using the changeset viewer.