/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "code/debugInfoRec.hpp"
#include "code/pcDesc.hpp"
#include "code/scopeDesc.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.inline.hpp"
ScopeDesc::ScopeDesc(const nmethod* code, int decode_offset, int obj_decode_offset, bool reexecute, bool return_oop) {
decode_body();
}
decode_body();
}
_reexecute = false; //reexecute only applies to the first scope
_return_oop = false;
decode_body();
}
// This is a sentinel record, which is only relevant to
// approximate queries. Decode a reasonable frame.
} else {
// decode header
// decode offsets for body and sender
}
}
}
return result;
}
// Objects values are pushed to 'result' array during read so that
// object's fields could reference it (OBJECT_ID_CODE).
}
return result;
}
}
return result;
}
}
return decode_scope_values(_locals_decode_offset);
}
}
}
return _objects;
}
}
return new ScopeDesc(this);
}
#ifndef PRODUCT
if (lineno != -1) {
} else {
}
}
}
// header
}
// decode offsets
if (WizardMode) {
}
// locals
if (l != NULL) {
}
}
}
// expressions
if (l != NULL) {
}
}
}
// monitors
if (l != NULL) {
}
}
}
#ifdef COMPILER2
}
}
#endif // COMPILER2
}
#endif
// check if we have any illegal elements on the expression stack
if (l != NULL) {
//guarantee(!l->at(index)->is_illegal(), "expression element cannot be illegal");
}
}
}
}