equal
deleted
inserted
replaced
79 |
79 |
80 class StubGenerator: public StubCodeGenerator { |
80 class StubGenerator: public StubCodeGenerator { |
81 private: |
81 private: |
82 |
82 |
83 #ifdef PRODUCT |
83 #ifdef PRODUCT |
84 #define inc_counter_np(counter) (0) |
84 #define inc_counter_np(counter) ((void)0) |
85 #else |
85 #else |
86 void inc_counter_np_(int& counter) { |
86 void inc_counter_np_(int& counter) { |
87 // This can destroy rscratch1 if counter is far from the code cache |
87 // This can destroy rscratch1 if counter is far from the code cache |
88 __ incrementl(ExternalAddress((address)&counter)); |
88 __ incrementl(ExternalAddress((address)&counter)); |
89 } |
89 } |