| Index: src/runtime/runtime-internal.cc
|
| diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
|
| index 0f807be5b8008214a84354592f99128d4fb01ed7..973c204435f7ca24fa17541c1ab6e8219f6eaacb 100644
|
| --- a/src/runtime/runtime-internal.cc
|
| +++ b/src/runtime/runtime-internal.cc
|
| @@ -318,5 +318,17 @@ RUNTIME_FUNCTION(Runtime_GetFromCache) {
|
| args[0] = isolate->native_context()->jsfunction_result_caches()->get(id);
|
| return __RT_impl_Runtime_GetFromCacheRT(args, isolate);
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_IncrementStatsCounter) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_CHECKED(String, name, 0);
|
| +
|
| + if (FLAG_native_code_counters) {
|
| + StatsCounter(isolate, name->ToCString().get()).Increment();
|
| + }
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| }
|
| } // namespace v8::internal
|
|
|