8204267: Generate comments in -XX:+PrintInterpreter to link to source code

Changed __ macro to use Disassembler::hook()

Reviewed-by: coleenp, aph
This commit is contained in:
Ioi Lam 2018-06-03 23:33:00 -07:00
parent 7d8922221d
commit b5f0945a72
8 changed files with 190 additions and 17 deletions

View file

@ -23,6 +23,7 @@
*/
#include "precompiled.hpp"
#include "compiler/disassembler.hpp"
#include "interpreter/interpreter.hpp"
#include "interpreter/interpreterRuntime.hpp"
#include "interpreter/interp_masm.hpp"
@ -33,7 +34,7 @@
#ifndef CC_INTERP
# define __ _masm->
#define __ Disassembler::hook<InterpreterMacroAssembler>(__FILE__, __LINE__, _masm)->
TemplateInterpreterGenerator::TemplateInterpreterGenerator(StubQueue* _code): AbstractInterpreterGenerator(_code) {
_unimplemented_bytecode = NULL;