Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: src/builtins.cc

Issue 1553523002: [telemetry] Counter Cleanups (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix merge conflicts Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/counters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index 9cc26db23b622e67c63ea7f144ea109f93a495de..89a171313a1322c346bfd7822b7002e1486530fb 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -134,17 +134,17 @@ BUILTIN_LIST_C(DEF_ARG_TYPE)
// In the body of the builtin function the arguments can be accessed
// through the BuiltinArguments object args.
-#define BUILTIN(name) \
- MUST_USE_RESULT static Object* Builtin_Impl_##name( \
- name##ArgumentsType args, Isolate* isolate); \
- MUST_USE_RESULT static Object* Builtin_##name( \
- int args_length, Object** args_object, Isolate* isolate) { \
- name##ArgumentsType args(args_length, args_object); \
- return Builtin_Impl_##name(args, isolate); \
- } \
- MUST_USE_RESULT static Object* Builtin_Impl_##name( \
- name##ArgumentsType args, Isolate* isolate)
-
+#define BUILTIN(name) \
+ MUST_USE_RESULT static Object* Builtin_Impl_##name(name##ArgumentsType args, \
+ Isolate* isolate); \
+ MUST_USE_RESULT static Object* Builtin_##name( \
+ int args_length, Object** args_object, Isolate* isolate) { \
+ name##ArgumentsType args(args_length, args_object); \
+ isolate->counters()->runtime_calls()->Increment(); \
+ return Builtin_Impl_##name(args, isolate); \
+ } \
+ MUST_USE_RESULT static Object* Builtin_Impl_##name(name##ArgumentsType args, \
+ Isolate* isolate)
// ----------------------------------------------------------------------------
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698