aboutsummaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-v8_src_codegen_x64_macro-assembler-x64.h
blob: 57d5d022498e6cf679d888d3ae96079bd00a14c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- v8/src/codegen/x64/macro-assembler-x64.h.orig	2023-09-17 07:59:53 UTC
+++ v8/src/codegen/x64/macro-assembler-x64.h
@@ -642,11 +642,14 @@ class V8_EXPORT_PRIVATE MacroAssembler
 
   // Define a function entrypoint. This doesn't emit any code for this
   // architecture, as control-flow integrity is not supported for it.
-  void CodeEntry() {}
+  void CodeEntry();
   // Define an exception handler.
-  void ExceptionHandler() {}
+  void ExceptionHandler() { CodeEntry(); }
   // Define an exception handler and bind a label.
-  void BindExceptionHandler(Label* label) { bind(label); }
+  void BindExceptionHandler(Label* label) {
+    bind(label);
+    CodeEntry();
+  }
 
   // ---------------------------------------------------------------------------
   // Pointer compression support