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

Unified Diff: src/arguments.h

Issue 1695733002: [counters] Making counter properly reentrant. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2016-02-09_recursive_counters_1681943002
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 | « no previous file | src/builtins.cc » ('j') | src/counters.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arguments.h
diff --git a/src/arguments.h b/src/arguments.h
index cba1b439958c993ea50732e76946a8fbf04057f6..25075f7f0d65e79c29aae4b7eee0296a61bd279b 100644
--- a/src/arguments.h
+++ b/src/arguments.h
@@ -275,16 +275,14 @@ double ClobberDoubleRegisters(double x1, double x2, double x3, double x4);
static INLINE(Type __RT_impl_##Name(Arguments args, Isolate* isolate)); \
Type Name(int args_length, Object** args_object, Isolate* isolate) { \
CLOBBER_DOUBLE_REGISTERS(); \
- base::ElapsedTimer timer; \
if (FLAG_runtime_call_stats) { \
RuntimeCallStats* stats = isolate->counters()->runtime_call_stats(); \
stats->Enter(&stats->Name); \
- timer.Start(); \
} \
Arguments args(args_length, args_object); \
Type value = __RT_impl_##Name(args, isolate); \
if (FLAG_runtime_call_stats) { \
- isolate->counters()->runtime_call_stats()->Leave(timer.Elapsed()); \
+ isolate->counters()->runtime_call_stats()->Leave(); \
} \
return value; \
} \
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/counters.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698