34 // A StubCodeDesc describes a piece of generated code (usually stubs). |
34 // A StubCodeDesc describes a piece of generated code (usually stubs). |
35 // This information is mainly useful for debugging and printing. |
35 // This information is mainly useful for debugging and printing. |
36 // Currently, code descriptors are simply chained in a linked list, |
36 // Currently, code descriptors are simply chained in a linked list, |
37 // this may have to change if searching becomes too slow. |
37 // this may have to change if searching becomes too slow. |
38 |
38 |
39 class StubCodeDesc: public CHeapObj { |
39 class StubCodeDesc: public CHeapObj<mtCode> { |
40 protected: |
40 protected: |
41 static StubCodeDesc* _list; // the list of all descriptors |
41 static StubCodeDesc* _list; // the list of all descriptors |
42 static int _count; // length of list |
42 static int _count; // length of list |
43 |
43 |
44 StubCodeDesc* _next; // the next element in the linked list |
44 StubCodeDesc* _next; // the next element in the linked list |