mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
--- v8/src/builtins/x64/builtins-x64.cc.orig 2023-11-29 21:41:53 UTC
|
|
+++ v8/src/builtins/x64/builtins-x64.cc
|
|
@@ -44,6 +44,8 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm,
|
|
#define __ ACCESS_MASM(masm)
|
|
|
|
void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) {
|
|
+ __ CodeEntry();
|
|
+
|
|
__ LoadAddress(kJavaScriptCallExtraArg1Register,
|
|
ExternalReference::Create(address));
|
|
__ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame),
|
|
@@ -430,7 +432,7 @@ void Generate_JSEntryVariant(MacroAssembler* masm, Sta
|
|
// Jump to a faked try block that does the invoke, with a faked catch
|
|
// block that sets the pending exception.
|
|
__ jmp(&invoke);
|
|
- __ bind(&handler_entry);
|
|
+ __ BindExceptionHandler(&handler_entry);
|
|
|
|
// Store the current pc as the handler offset. It's used later to create the
|
|
// handler table.
|
|
@@ -3339,6 +3341,9 @@ void GenerateExceptionHandlingLandingPad(MacroAssemble
|
|
void GenerateExceptionHandlingLandingPad(MacroAssembler* masm,
|
|
Label* return_promise) {
|
|
int catch_handler = __ pc_offset();
|
|
+
|
|
+ __ endbr64();
|
|
+
|
|
// Restore rsp to free the reserved stack slots for the sections.
|
|
__ leaq(rsp, MemOperand(rbp, StackSwitchFrameConstants::kLastSpillOffset));
|
|
|
|
@@ -3696,6 +3701,7 @@ void Builtins::Generate_WasmSuspend(MacroAssembler* ma
|
|
LoadJumpBuffer(masm, jmpbuf, true);
|
|
__ Trap();
|
|
__ bind(&resume);
|
|
+ __ endbr64();
|
|
__ LeaveFrame(StackFrame::STACK_SWITCH);
|
|
__ ret(0);
|
|
}
|
|
@@ -3828,6 +3834,7 @@ void Generate_WasmResumeHelper(MacroAssembler* masm, w
|
|
}
|
|
__ Trap();
|
|
__ bind(&suspend);
|
|
+ __ endbr64();
|
|
__ LeaveFrame(StackFrame::STACK_SWITCH);
|
|
// Pop receiver + parameter.
|
|
__ ret(2 * kSystemPointerSize);
|