[JSC] Remove "using namespace std;" from JSC, bmalloc, WTF
https://bugs.webkit.org/show_bug.cgi?id=185362
Reviewed by Sam Weinig.
Source/bmalloc:
- bmalloc/Allocator.cpp:
- bmalloc/Deallocator.cpp:
Source/JavaScriptCore:
"namespace std" may include many names. It can conflict with names defined by our code,
and the other platform provided headers. For example, std::byte conflicts with Windows'
::byte.
This patch removes "using namespace std;" from JSC and bmalloc.
(OpaqueJSClass::create):
- bytecode/Opcode.cpp:
- bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::newRegister):
(JSC::Heap::updateAllocationLimits):
- interpreter/Interpreter.cpp:
- jit/JIT.cpp:
- parser/Parser.cpp:
- runtime/JSArray.cpp:
- runtime/JSLexicalEnvironment.cpp:
- runtime/JSModuleEnvironment.cpp:
- runtime/Structure.cpp:
- shell/DLLLauncherMain.cpp:
(getStringValue):
(applePathFromRegistry):
(appleApplicationSupportDirectory):
(copyEnvironmentVariable):
(prependPath):
(fatalError):
(directoryExists):
(modifyPath):
(getLastErrorString):
(wWinMain):