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 "memory/resourceArea.hpp"
33 #include "oops/methodData.hpp"
34 #include "prims/jvmtiRedefineClasses.hpp"
35 #include "runtime/arguments.hpp"
36 #include "runtime/compilationPolicy.hpp"
37 #include "runtime/deoptimization.hpp"
38 #include "runtime/handles.inline.hpp"
39 #include "runtime/orderAccess.inline.hpp"
40 #include "utilities/copy.hpp"
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++) {
59 set_cell_at(i, (intptr_t)0);
|
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 "memory/resourceArea.hpp"
33 #include "oops/methodData.hpp"
34 #include "prims/jvmtiRedefineClasses.hpp"
35 #include "runtime/arguments.hpp"
36 #include "runtime/compilationPolicy.hpp"
37 #include "runtime/deoptimization.hpp"
38 #include "runtime/handles.inline.hpp"
39 #include "runtime/orderAccess.inline.hpp"
40 #include "utilities/align.hpp"
41 #include "utilities/copy.hpp"
42
43 // ==================================================================
44 // DataLayout
45 //
46 // Overlay for generic profiling data.
47
48 // Some types of data layouts need a length field.
49 bool DataLayout::needs_array_len(u1 tag) {
50 return (tag == multi_branch_data_tag) || (tag == arg_info_data_tag) || (tag == parameters_type_data_tag);
51 }
52
53 // Perform generic initialization of the data. More specific
54 // initialization occurs in overrides of ProfileData::post_initialize.
55 void DataLayout::initialize(u1 tag, u2 bci, int cell_count) {
56 _header._bits = (intptr_t)0;
57 _header._struct._tag = tag;
58 _header._struct._bci = bci;
59 for (int i = 0; i < cell_count; i++) {
60 set_cell_at(i, (intptr_t)0);
|