213 // size in a clique of mutually inlinable methods. |
213 // size in a clique of mutually inlinable methods. |
214 |
214 |
215 WarmCallInfo* next() const { return _next; } |
215 WarmCallInfo* next() const { return _next; } |
216 void set_next(WarmCallInfo* n) { _next = n; } |
216 void set_next(WarmCallInfo* n) { _next = n; } |
217 |
217 |
218 static WarmCallInfo* _always_hot; |
218 static WarmCallInfo _always_hot; |
219 static WarmCallInfo* _always_cold; |
219 static WarmCallInfo _always_cold; |
|
220 |
|
221 // Constructor intitialization of always_hot and always_cold |
|
222 WarmCallInfo(float c, float p, float w, float s) { |
|
223 _call = NULL; |
|
224 _hot_cg = NULL; |
|
225 _next = NULL; |
|
226 _count = c; |
|
227 _profit = p; |
|
228 _work = w; |
|
229 _size = s; |
|
230 _heat = 0; |
|
231 } |
220 |
232 |
221 public: |
233 public: |
222 // Because WarmInfo objects live over the entire lifetime of the |
234 // Because WarmInfo objects live over the entire lifetime of the |
223 // Compile object, they are allocated into the comp_arena, which |
235 // Compile object, they are allocated into the comp_arena, which |
224 // does not get resource marked or reset during the compile process |
236 // does not get resource marked or reset during the compile process |