-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Use enum for machine code copy function
https://bugs.webkit.org/show_bug.cgi?id=267217 rdar://120625991 Reviewed by Justin Michaud. This makes code much simpler. We can remove many weird workaround for GCC, like memcpyWrapper. * Source/JavaScriptCore/assembler/ARM64Assembler.h: * Source/JavaScriptCore/assembler/ARMv7Assembler.h: (JSC::ARMv7Assembler::fillNops): (JSC::ARMv7Assembler::replaceWithNops): (JSC::ARMv7Assembler::linkJumpT1): (JSC::ARMv7Assembler::linkJumpT2): (JSC::ARMv7Assembler::linkJumpT3): (JSC::ARMv7Assembler::linkJumpT4): (JSC::ARMv7Assembler::linkConditionalJumpT4): (JSC::ARMv7Assembler::linkBX): (JSC::ARMv7Assembler::linkConditionalBX): * Source/JavaScriptCore/assembler/AbstractMacroAssembler.h: (JSC::AbstractMacroAssembler::emitNops): * Source/JavaScriptCore/assembler/AssemblerCommon.h: (JSC::machineCodeCopy): * Source/JavaScriptCore/assembler/LinkBuffer.cpp: (JSC::LinkBuffer::copyCompactAndLinkCode): * Source/JavaScriptCore/assembler/MIPSAssembler.h: (JSC::MIPSAssembler::nop): * Source/JavaScriptCore/assembler/MacroAssemblerARM64.h: * Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h: * Source/JavaScriptCore/assembler/RISCV64Assembler.h: (JSC::RISCV64Assembler::replaceWithNops): (JSC::RISCV64Assembler::fillNops): * Source/JavaScriptCore/assembler/X86Assembler.h: (JSC::X86Assembler::replaceWithNops): (JSC::X86Assembler::memcpyWrapper): Deleted. * Source/JavaScriptCore/jit/ExecutableAllocator.cpp: * Source/JavaScriptCore/jit/ExecutableAllocator.h: (JSC::memcpyWrapper): Deleted. Canonical link: https://commits.webkit.org/272768@main
- Loading branch information
1 parent
8e11338
commit bbfda64
Showing
12 changed files
with
72 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.