sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

Support generate comments in -XX:+PrintInterpreter to link to source code for interpreter_aarch64.cpp interpreter_riscv.cpp interpreter_x86_64.cpp #262

Open sendaoYan opened 1 month ago

sendaoYan commented 1 month ago
diff --git a/hotspot/src/cpu/aarch64/vm/interpreter_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/interpreter_aarch64.cpp
index 459311c6b8d..1241f0d2968 100644
--- a/hotspot/src/cpu/aarch64/vm/interpreter_aarch64.cpp
+++ b/hotspot/src/cpu/aarch64/vm/interpreter_aarch64.cpp
@@ -26,6 +26,7 @@

 #include "precompiled.hpp"
 #include "asm/macroAssembler.hpp"
+#include "compiler/disassembler.hpp"
 #include "interpreter/bytecodeHistogram.hpp"
 #include "interpreter/interpreter.hpp"
 #include "interpreter/interpreterGenerator.hpp"
@@ -51,7 +52,7 @@
 #include "c1/c1_Runtime1.hpp"
 #endif

-#define __ _masm->
+#define __ Disassembler::hook<InterpreterMacroAssembler>(__FILE__, __LINE__, _masm)->

 address AbstractInterpreterGenerator::generate_slow_signature_handler() {
diff --git a/hotspot/src/cpu/riscv/vm/interpreter_riscv.cpp b/hotspot/src/cpu/riscv/vm/interpreter_riscv.cpp
index c5f3a9cab27..12f7b775fe8 100644
--- a/hotspot/src/cpu/riscv/vm/interpreter_riscv.cpp
+++ b/hotspot/src/cpu/riscv/vm/interpreter_riscv.cpp
@@ -25,6 +25,7 @@

 #include "precompiled.hpp"
 #include "asm/macroAssembler.hpp"
+#include "compiler/disassembler.hpp"
 #include "interpreter/bytecodeHistogram.hpp"
 #include "interpreter/interpreter.hpp"
 #include "interpreter/interpreterGenerator.hpp"
@@ -50,7 +51,7 @@
 #include "c1/c1_Runtime1.hpp"
 #endif

-#define __ _masm->
+#define __ Disassembler::hook<InterpreterMacroAssembler>(__FILE__, __LINE__, _masm)->

 address AbstractInterpreterGenerator::generate_slow_signature_handler() {
diff --git a/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp b/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp
index a6190fd988b..8733981defa 100644
--- a/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp
+++ b/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp
@@ -24,6 +24,7 @@

 #include "precompiled.hpp"
 #include "asm/macroAssembler.hpp"
+#include "compiler/disassembler.hpp"
 #include "interpreter/bytecodeHistogram.hpp"
 #include "interpreter/interpreter.hpp"
 #include "interpreter/interpreterGenerator.hpp"
@@ -49,7 +50,7 @@
 #include "c1/c1_Runtime1.hpp"
 #endif

-#define __ _masm->
+#define __ Disassembler::hook<InterpreterMacroAssembler>(__FILE__, __LINE__, _masm)->

 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC

make-gcc10-x86_64.log jdk8u-x64-2.log jdk8u-x64-1.log

sendaoYan commented 1 month ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 65ffd4a2f0d..3c577e8d6ec minus-jbs8276799 -> minus-jbs8276799

sendaoYan commented 1 month ago

262.patch

sendaoYan commented 1 month ago

262.zip