41 #include "memory/oopFactory.hpp"
42 #include "memory/resourceArea.hpp"
43 #include "oops/constMethod.hpp"
44 #include "oops/method.hpp"
45 #include "oops/methodData.hpp"
46 #include "oops/objArrayOop.inline.hpp"
47 #include "oops/oop.inline.hpp"
48 #include "oops/symbol.hpp"
49 #include "prims/jvmtiExport.hpp"
50 #include "prims/methodHandles.hpp"
51 #include "prims/nativeLookup.hpp"
52 #include "runtime/arguments.hpp"
53 #include "runtime/compilationPolicy.hpp"
54 #include "runtime/frame.inline.hpp"
55 #include "runtime/handles.inline.hpp"
56 #include "runtime/init.hpp"
57 #include "runtime/orderAccess.inline.hpp"
58 #include "runtime/relocator.hpp"
59 #include "runtime/sharedRuntime.hpp"
60 #include "runtime/signature.hpp"
61 #include "utilities/quickSort.hpp"
62 #include "utilities/vmError.hpp"
63 #include "utilities/xmlstream.hpp"
64
65 // Implementation of Method
66
67 Method* Method::allocate(ClassLoaderData* loader_data,
68 int byte_code_size,
69 AccessFlags access_flags,
70 InlineTableSizes* sizes,
71 ConstMethod::MethodType method_type,
72 TRAPS) {
73 assert(!access_flags.is_native() || byte_code_size == 0,
74 "native methods should not contain byte codes");
75 ConstMethod* cm = ConstMethod::allocate(loader_data,
76 byte_code_size,
77 sizes,
78 method_type,
79 CHECK_NULL);
80 int size = Method::size(access_flags.is_native());
|
41 #include "memory/oopFactory.hpp"
42 #include "memory/resourceArea.hpp"
43 #include "oops/constMethod.hpp"
44 #include "oops/method.hpp"
45 #include "oops/methodData.hpp"
46 #include "oops/objArrayOop.inline.hpp"
47 #include "oops/oop.inline.hpp"
48 #include "oops/symbol.hpp"
49 #include "prims/jvmtiExport.hpp"
50 #include "prims/methodHandles.hpp"
51 #include "prims/nativeLookup.hpp"
52 #include "runtime/arguments.hpp"
53 #include "runtime/compilationPolicy.hpp"
54 #include "runtime/frame.inline.hpp"
55 #include "runtime/handles.inline.hpp"
56 #include "runtime/init.hpp"
57 #include "runtime/orderAccess.inline.hpp"
58 #include "runtime/relocator.hpp"
59 #include "runtime/sharedRuntime.hpp"
60 #include "runtime/signature.hpp"
61 #include "utilities/align.hpp"
62 #include "utilities/quickSort.hpp"
63 #include "utilities/vmError.hpp"
64 #include "utilities/xmlstream.hpp"
65
66 // Implementation of Method
67
68 Method* Method::allocate(ClassLoaderData* loader_data,
69 int byte_code_size,
70 AccessFlags access_flags,
71 InlineTableSizes* sizes,
72 ConstMethod::MethodType method_type,
73 TRAPS) {
74 assert(!access_flags.is_native() || byte_code_size == 0,
75 "native methods should not contain byte codes");
76 ConstMethod* cm = ConstMethod::allocate(loader_data,
77 byte_code_size,
78 sizes,
79 method_type,
80 CHECK_NULL);
81 int size = Method::size(access_flags.is_native());
|