equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP |
25 #ifndef SHARE_VM_CODE_ICBUFFER_HPP |
26 #define SHARE_VM_CODE_ICBUFFER_HPP |
26 #define SHARE_VM_CODE_ICBUFFER_HPP |
27 |
27 |
|
28 #include "asm/codeBuffer.hpp" |
28 #include "code/stubs.hpp" |
29 #include "code/stubs.hpp" |
29 #include "interpreter/bytecodes.hpp" |
30 #include "interpreter/bytecodes.hpp" |
30 #include "memory/allocation.hpp" |
31 #include "memory/allocation.hpp" |
31 |
32 |
32 // |
33 // |
46 address _ic_site; // points at call instruction of owning ic-buffer |
47 address _ic_site; // points at call instruction of owning ic-buffer |
47 /* stub code follows here */ |
48 /* stub code follows here */ |
48 protected: |
49 protected: |
49 friend class ICStubInterface; |
50 friend class ICStubInterface; |
50 // This will be called only by ICStubInterface |
51 // This will be called only by ICStubInterface |
51 void initialize(int size) { _size = size; _ic_site = NULL; } |
52 void initialize(int size, |
|
53 CodeComments comments) { _size = size; _ic_site = NULL; } |
52 void finalize(); // called when a method is removed |
54 void finalize(); // called when a method is removed |
53 |
55 |
54 // General info |
56 // General info |
55 int size() const { return _size; } |
57 int size() const { return _size; } |
56 static int code_size_to_size(int code_size) { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; } |
58 static int code_size_to_size(int code_size) { return round_to(sizeof(ICStub), CodeEntryAlignment) + code_size; } |