Skip to content

Commit

Permalink
解决10.6.194 v8cc window arm64报错:../../src/trap-handler/handler-outside…
Browse files Browse the repository at this point in the history
…-simulator.cc(37): error C2290: C++ 'asm' syntax ignored. Use __asm.9.4不报错是因为window不编译这个文件,10.6 arm没报错是因为32位不编译这文件,11.8是因为有V8_TRAP_HANDLER_SUPPORTED框住,这种编译设定下V8_TRAP_HANDLER_SUPPORTED为false
  • Loading branch information
chexiongsheng committed Aug 1, 2024
1 parent fec652e commit a21eff7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/v8cc_arm_win_v10.6.194.patch
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,16 @@ index a8fcfcb448f..444a0ce3111 100644
}

// Otherwise the limit is the JS stack. Leave a safety margin of 4 KiB
diff --git a/src/trap-handler/handler-outside-simulator.cc b/src/trap-handler/handler-outside-simulator.cc
index 179eab0659f..b623983809e 100644
--- a/src/trap-handler/handler-outside-simulator.cc
+++ b/src/trap-handler/handler-outside-simulator.cc
@@ -12,7 +12,7 @@
#endif // !V8_OS_DARWIN

// Define the ProbeMemory function declared in trap-handler-simulators.h.
-asm(
+__asm(
".globl " SYMBOL(ProbeMemory) " \n"
SYMBOL(ProbeMemory) ": \n"
// First parameter (address) passed in %rdi on Linux/Mac, and %rcx on Windows.

0 comments on commit a21eff7

Please sign in to comment.