OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COUNTERS_H_ | 5 #ifndef V8_COUNTERS_H_ |
6 #define V8_COUNTERS_H_ | 6 #define V8_COUNTERS_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/base/atomic-utils.h" | 10 #include "src/base/atomic-utils.h" |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 V(StoreIC_StoreCallback) \ | 785 V(StoreIC_StoreCallback) \ |
786 V(StoreIC_StoreField) \ | 786 V(StoreIC_StoreField) \ |
787 V(StoreIC_StoreFieldDH) \ | 787 V(StoreIC_StoreFieldDH) \ |
788 V(StoreIC_StoreFieldStub) \ | 788 V(StoreIC_StoreFieldStub) \ |
789 V(StoreIC_StoreGlobal) \ | 789 V(StoreIC_StoreGlobal) \ |
790 V(StoreIC_StoreGlobalTransition) \ | 790 V(StoreIC_StoreGlobalTransition) \ |
791 V(StoreIC_StoreInterceptorStub) \ | 791 V(StoreIC_StoreInterceptorStub) \ |
792 V(StoreIC_StoreNormal) \ | 792 V(StoreIC_StoreNormal) \ |
793 V(StoreIC_StoreScriptContextFieldStub) \ | 793 V(StoreIC_StoreScriptContextFieldStub) \ |
794 V(StoreIC_StoreTransition) \ | 794 V(StoreIC_StoreTransition) \ |
| 795 V(StoreIC_StoreTransitionDH) \ |
795 V(StoreIC_StoreViaSetter) | 796 V(StoreIC_StoreViaSetter) |
796 | 797 |
797 class RuntimeCallStats { | 798 class RuntimeCallStats { |
798 public: | 799 public: |
799 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; | 800 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; |
800 | 801 |
801 #define CALL_RUNTIME_COUNTER(name) \ | 802 #define CALL_RUNTIME_COUNTER(name) \ |
802 RuntimeCallCounter name = RuntimeCallCounter(#name); | 803 RuntimeCallCounter name = RuntimeCallCounter(#name); |
803 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) | 804 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) |
804 #undef CALL_RUNTIME_COUNTER | 805 #undef CALL_RUNTIME_COUNTER |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 } | 1304 } |
1304 | 1305 |
1305 Isolate* isolate_ = nullptr; | 1306 Isolate* isolate_ = nullptr; |
1306 RuntimeCallTimer timer_; | 1307 RuntimeCallTimer timer_; |
1307 }; | 1308 }; |
1308 | 1309 |
1309 } // namespace internal | 1310 } // namespace internal |
1310 } // namespace v8 | 1311 } // namespace v8 |
1311 | 1312 |
1312 #endif // V8_COUNTERS_H_ | 1313 #endif // V8_COUNTERS_H_ |
OLD | NEW |