| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #define SC(name) \ | 64 #define SC(name) \ |
| 65 StatsCounter count_of_CODE_TYPE_##name = { \ | 65 StatsCounter count_of_CODE_TYPE_##name = { \ |
| 66 "c:" "V8.CountOf_CODE_TYPE-" #name, NULL, false }; \ | 66 "c:" "V8.CountOf_CODE_TYPE-" #name, NULL, false }; \ |
| 67 count_of_CODE_TYPE_##name##_ = count_of_CODE_TYPE_##name; \ | 67 count_of_CODE_TYPE_##name##_ = count_of_CODE_TYPE_##name; \ |
| 68 StatsCounter size_of_CODE_TYPE_##name = { \ | 68 StatsCounter size_of_CODE_TYPE_##name = { \ |
| 69 "c:" "V8.SizeOf_CODE_TYPE-" #name, NULL, false }; \ | 69 "c:" "V8.SizeOf_CODE_TYPE-" #name, NULL, false }; \ |
| 70 size_of_CODE_TYPE_##name##_ = size_of_CODE_TYPE_##name; | 70 size_of_CODE_TYPE_##name##_ = size_of_CODE_TYPE_##name; |
| 71 CODE_KIND_LIST(SC) | 71 CODE_KIND_LIST(SC) |
| 72 #undef SC | 72 #undef SC |
| 73 | 73 |
| 74 #define SC(name) \ |
| 75 StatsCounter count_of_FIXED_ARRAY_##name = { \ |
| 76 "c:" "V8.CountOf_FIXED_ARRAY-" #name, NULL, false }; \ |
| 77 count_of_FIXED_ARRAY_##name##_ = count_of_FIXED_ARRAY_##name; \ |
| 78 StatsCounter size_of_FIXED_ARRAY_##name = { \ |
| 79 "c:" "V8.SizeOf_FIXED_ARRAY-" #name, NULL, false }; \ |
| 80 size_of_FIXED_ARRAY_##name##_ = size_of_FIXED_ARRAY_##name; |
| 81 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
| 82 #undef SC |
| 83 |
| 74 StatsCounter state_counters[] = { | 84 StatsCounter state_counters[] = { |
| 75 #define COUNTER_NAME(name) \ | 85 #define COUNTER_NAME(name) \ |
| 76 { "c:V8.State" #name, NULL, false }, | 86 { "c:V8.State" #name, NULL, false }, |
| 77 STATE_TAG_LIST(COUNTER_NAME) | 87 STATE_TAG_LIST(COUNTER_NAME) |
| 78 #undef COUNTER_NAME | 88 #undef COUNTER_NAME |
| 79 }; | 89 }; |
| 80 | 90 |
| 81 for (int i = 0; i < kSlidingStateWindowCounterCount; ++i) { | 91 for (int i = 0; i < kSlidingStateWindowCounterCount; ++i) { |
| 82 state_counters_[i] = state_counters[i]; | 92 state_counters_[i] = state_counters[i]; |
| 83 } | 93 } |
| 84 } | 94 } |
| 85 | 95 |
| 86 } } // namespace v8::internal | 96 } } // namespace v8::internal |
| OLD | NEW |