/* * 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 * 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. *
*/
// Interpreter frames
interpreter_frame_result_handler_offset = 3, // for native calls only
interpreter_frame_oop_temp_offset = 2, // for native calls only
// size, in words, of frame metadata (e.g. pc and link)
metadata_words = sender_sp_offset, // size, in words, of metadata at frame bottom, i.e. it is not part of the // caller/callee overlap
metadata_words_at_bottom = metadata_words, // size, in words, of frame metadata at the frame top, i.e. it is located // between a callee frame and its stack arguments, where it is part // of the caller/callee overlap
metadata_words_at_top = 0, // size, in words, of frame metadata at the frame top that needs // to be reserved for callee functions in the runtime
frame_alignment = 16, // size, in words, of maximum shift in frame position due to alignment
align_wiggle = 1
};
private: // an additional field beyond _sp and _pc: union {
intptr_t* _fp; // frame pointer int _offset_fp; // relative frame pointer for use in stack-chunk frames
}; // The interpreter and adapters will extend the frame of the caller. // Since oopMaps are based on the sp of the caller before extension // we need to know that value. However in order to compute the address // of the return address we need the real "raw" sp. By convention we // use sp() to mean "raw" sp and unextended_sp() to mean the caller's // original sp.
union {
intptr_t* _unextended_sp; int _offset_unextended_sp; // for use in stack-chunk frames
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.