Mercurial > hg > truffle
comparison src/share/vm/code/icBuffer.hpp @ 6796:b31471cdc53e
7200163: add CodeComments functionality to assember stubs
Summary: Pass the codeBuffer to the Stub constructor, and adapts the disassembler to print the comments.
Reviewed-by: jrose, kvn, twisti
Contributed-by: goetz.lindenmaier@sap.com
author | kvn |
---|---|
date | Mon, 24 Sep 2012 10:30:14 -0700 |
parents | da91efe96a93 |
children | 7d815d842ee0 a5de0cc2f91c |
comparison
equal
deleted
inserted
replaced
6795:7eca5de9e0b6 | 6796:b31471cdc53e |
---|---|
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; } |