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

Unified Diff: src/builtins.cc

Issue 1681923003: Revert of [counters] moving runtime counters to counter.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/arguments.h ('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 d72a992d252e07d43aa4ecac4f308480d3cc1af2..916ee37864fc4d499398e17d6aa2ad4dbcb17b46 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -139,26 +139,10 @@
Isolate* isolate); \
MUST_USE_RESULT static Object* Builtin_##name( \
int args_length, Object** args_object, Isolate* isolate) { \
- RuntimeCallStats* stats = isolate->counters()->runtime_call_stats(); \
- stats->Count_Builtin_##name++; \
- base::ElapsedTimer timer; \
- bool timing = false; \
- if (FLAG_runtime_call_stats && !stats->in_runtime_call) { \
- stats->in_runtime_call = true; \
- timing = true; \
- timer.Start(); \
- } \
name##ArgumentsType args(args_length, args_object); \
isolate->counters()->runtime_calls()->Increment(); \
- Object* value = Builtin_Impl_##name(args, isolate); \
- if (timing) { \
- stats->in_runtime_call = false; \
- isolate->counters()->runtime_call_stats()->Time_Builtin_##name += \
- timer.Elapsed(); \
- } \
- return value; \
+ 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/arguments.h ('k') | src/counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698