| Index: src/arguments.h
|
| diff --git a/src/arguments.h b/src/arguments.h
|
| index 170dbe336a85b54041c14176bcf73ee555694f57..42d444b20723df62c201bcaf1600bd5952a6ad5e 100644
|
| --- a/src/arguments.h
|
| +++ b/src/arguments.h
|
| @@ -273,29 +273,31 @@
|
| #define CLOBBER_DOUBLE_REGISTERS()
|
| #endif
|
|
|
| -#define RUNTIME_FUNCTION_RETURNS_TYPE(Type, Name) \
|
| - static INLINE(Type __RT_impl_##Name(Arguments args, Isolate* isolate)); \
|
| - Type Name(int args_length, Object** args_object, Isolate* isolate) { \
|
| - CLOBBER_DOUBLE_REGISTERS(); \
|
| - RuntimeCallStats* stats = isolate->counters()->runtime_call_stats(); \
|
| - stats->Count_##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(); \
|
| - } \
|
| - Arguments args(args_length, args_object); \
|
| - Type value = __RT_impl_##Name(args, isolate); \
|
| - if (timing) { \
|
| - stats->in_runtime_call = false; \
|
| - isolate->counters()->runtime_call_stats()->Time_##Name += \
|
| - timer.Elapsed(); \
|
| - } \
|
| - return value; \
|
| - } \
|
| +
|
| +#define RUNTIME_FUNCTION_RETURNS_TYPE(Type, Name) \
|
| + static INLINE(Type __RT_impl_##Name(Arguments args, Isolate* isolate)); \
|
| + Type Name(int args_length, Object** args_object, Isolate* isolate) { \
|
| + CLOBBER_DOUBLE_REGISTERS(); \
|
| + RuntimeCallStats* stats = isolate->runtime_state()->runtime_call_stats(); \
|
| + stats->Count_##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(); \
|
| + } \
|
| + Arguments args(args_length, args_object); \
|
| + Type value = __RT_impl_##Name(args, isolate); \
|
| + if (timing) { \
|
| + stats->in_runtime_call = false; \
|
| + isolate->runtime_state()->runtime_call_stats()->Time_##Name += \
|
| + timer.Elapsed(); \
|
| + } \
|
| + return value; \
|
| + } \
|
| static Type __RT_impl_##Name(Arguments args, Isolate* isolate)
|
| +
|
|
|
| #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name)
|
| #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \
|
|
|