18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "compiler/compilerOracle.hpp"
28 #include "interpreter/bytecode.hpp"
29 #include "interpreter/bytecodeStream.hpp"
30 #include "interpreter/linkResolver.hpp"
31 #include "memory/heapInspection.hpp"
32 #include "oops/methodData.hpp"
33 #include "prims/jvmtiRedefineClasses.hpp"
34 #include "runtime/compilationPolicy.hpp"
35 #include "runtime/deoptimization.hpp"
36 #include "runtime/handles.inline.hpp"
37 #include "runtime/orderAccess.inline.hpp"
38
39 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
40
41 // ==================================================================
42 // DataLayout
43 //
44 // Overlay for generic profiling data.
45
46 // Some types of data layouts need a length field.
47 bool DataLayout::needs_array_len(u1 tag) {
48 return (tag == multi_branch_data_tag) || (tag == arg_info_data_tag) || (tag == parameters_type_data_tag);
49 }
50
51 // Perform generic initialization of the data. More specific
52 // initialization occurs in overrides of ProfileData::post_initialize.
53 void DataLayout::initialize(u1 tag, u2 bci, int cell_count) {
54 _header._bits = (intptr_t)0;
55 _header._struct._tag = tag;
56 _header._struct._bci = bci;
57 for (int i = 0; i < cell_count; i++) {
|
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "compiler/compilerOracle.hpp"
28 #include "interpreter/bytecode.hpp"
29 #include "interpreter/bytecodeStream.hpp"
30 #include "interpreter/linkResolver.hpp"
31 #include "memory/heapInspection.hpp"
32 #include "oops/methodData.hpp"
33 #include "prims/jvmtiRedefineClasses.hpp"
34 #include "runtime/compilationPolicy.hpp"
35 #include "runtime/deoptimization.hpp"
36 #include "runtime/handles.inline.hpp"
37 #include "runtime/orderAccess.inline.hpp"
38 #include "utilities/copy.hpp"
39
40 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
41
42 // ==================================================================
43 // DataLayout
44 //
45 // Overlay for generic profiling data.
46
47 // Some types of data layouts need a length field.
48 bool DataLayout::needs_array_len(u1 tag) {
49 return (tag == multi_branch_data_tag) || (tag == arg_info_data_tag) || (tag == parameters_type_data_tag);
50 }
51
52 // Perform generic initialization of the data. More specific
53 // initialization occurs in overrides of ProfileData::post_initialize.
54 void DataLayout::initialize(u1 tag, u2 bci, int cell_count) {
55 _header._bits = (intptr_t)0;
56 _header._struct._tag = tag;
57 _header._struct._bci = bci;
58 for (int i = 0; i < cell_count; i++) {
|