8293340: Remove unused _code in {Zero,Template}InterpreterGenerator

Reviewed-by: jiefu, shade
This commit is contained in:
bobpengxie 2022-09-06 09:39:17 +00:00 committed by Jie Fu
parent 26f2a978f6
commit 272745b374
8 changed files with 10 additions and 10 deletions

@ -65,7 +65,7 @@ void ZeroInterpreter::initialize_code() {
// generate interpreter
{ ResourceMark rm;
TraceTime timer("Interpreter generation", TRACETIME_LOG(Info, startuptime));
ZeroInterpreterGenerator g(_code);
ZeroInterpreterGenerator g;
if (PrintInterpreter) print();
}
}

@ -96,7 +96,7 @@ address AbstractInterpreter::_native_abi_to_tosca [AbstractInterpreter::nu
//------------------------------------------------------------------------------------------------------------------------
// Generation of complete interpreter
AbstractInterpreterGenerator::AbstractInterpreterGenerator(StubQueue* _code) {
AbstractInterpreterGenerator::AbstractInterpreterGenerator() {
_masm = NULL;
}

@ -295,7 +295,7 @@ class AbstractInterpreterGenerator: public StackObj {
InterpreterMacroAssembler* _masm;
public:
AbstractInterpreterGenerator(StubQueue* _code);
AbstractInterpreterGenerator();
};
#endif // SHARE_INTERPRETER_ABSTRACTINTERPRETER_HPP

@ -63,7 +63,7 @@ void TemplateInterpreter::initialize_code() {
// generate interpreter
{ ResourceMark rm;
TraceTime timer("Interpreter generation", TRACETIME_LOG(Info, startuptime));
TemplateInterpreterGenerator g(_code);
TemplateInterpreterGenerator g;
// Free the unused memory not occupied by the interpreter and the stubs
_code->deallocate_unused_tail();
}

@ -34,7 +34,7 @@
#define __ Disassembler::hook<InterpreterMacroAssembler>(__FILE__, __LINE__, _masm)->
TemplateInterpreterGenerator::TemplateInterpreterGenerator(StubQueue* _code): AbstractInterpreterGenerator(_code) {
TemplateInterpreterGenerator::TemplateInterpreterGenerator(): AbstractInterpreterGenerator() {
_unimplemented_bytecode = NULL;
_illegal_bytecode_sequence = NULL;
generate_all();

@ -127,7 +127,7 @@ class TemplateInterpreterGenerator: public AbstractInterpreterGenerator {
#endif // PPC
public:
TemplateInterpreterGenerator(StubQueue* _code);
TemplateInterpreterGenerator();
};
#endif // !ZERO

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -32,7 +32,7 @@
#include "oops/method.hpp"
#include "zeroInterpreterGenerator.hpp"
ZeroInterpreterGenerator::ZeroInterpreterGenerator(StubQueue* _code): AbstractInterpreterGenerator(_code) {
ZeroInterpreterGenerator::ZeroInterpreterGenerator(): AbstractInterpreterGenerator() {
generate_all();
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -49,7 +49,7 @@ class ZeroInterpreterGenerator: public AbstractInterpreterGenerator {
address generate_Reference_get_entry();
public:
ZeroInterpreterGenerator(StubQueue* _code);
ZeroInterpreterGenerator();
protected:
MacroAssembler* assembler() const {