Commit 7d871931 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[counters] Remove counter for 'arguments adaptor'

Change-Id: If476aa8a759bbf6360ef1fc68dbc3e624f8731e5
Bug: v8:6666
Reviewed-on: https://chromium-review.googlesource.com/c/1282971Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56692}
parent a8cb521a
...@@ -2318,16 +2318,9 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { ...@@ -2318,16 +2318,9 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
// ----------------------------------- // -----------------------------------
Assembler::SupportsRootRegisterScope supports_root_register(masm); Assembler::SupportsRootRegisterScope supports_root_register(masm);
const Register kExpectedNumberOfArgumentsRegister = ecx; const Register kExpectedNumberOfArgumentsRegister = ecx;
Label invoke, dont_adapt_arguments, stack_overflow; Label invoke, dont_adapt_arguments, stack_overflow, enough, too_few;
// edi is used as a scratch register. It should be restored from the frame
// when needed.
__ IncrementCounter(masm->isolate()->counters()->arguments_adaptors(), 1,
edi);
Label enough, too_few;
__ cmp(kExpectedNumberOfArgumentsRegister, __ cmp(kExpectedNumberOfArgumentsRegister,
SharedFunctionInfo::kDontAdaptArgumentsSentinel); SharedFunctionInfo::kDontAdaptArgumentsSentinel);
__ j(equal, &dont_adapt_arguments); __ j(equal, &dont_adapt_arguments);
......
...@@ -1645,11 +1645,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { ...@@ -1645,11 +1645,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
// -- rdi : function (passed through to callee) // -- rdi : function (passed through to callee)
// ----------------------------------- // -----------------------------------
Label invoke, dont_adapt_arguments, stack_overflow; Label invoke, dont_adapt_arguments, stack_overflow, enough, too_few;
Counters* counters = masm->isolate()->counters();
__ IncrementCounter(counters->arguments_adaptors(), 1);
Label enough, too_few;
__ cmpp(rbx, Immediate(SharedFunctionInfo::kDontAdaptArgumentsSentinel)); __ cmpp(rbx, Immediate(SharedFunctionInfo::kDontAdaptArgumentsSentinel));
__ j(equal, &dont_adapt_arguments); __ j(equal, &dont_adapt_arguments);
__ cmpp(rax, rbx); __ cmpp(rax, rbx);
......
...@@ -1357,7 +1357,6 @@ class RuntimeCallTimerScope { ...@@ -1357,7 +1357,6 @@ class RuntimeCallTimerScope {
SC(string_table_capacity, V8.StringTableCapacity) \ SC(string_table_capacity, V8.StringTableCapacity) \
SC(number_of_symbols, V8.NumberOfSymbols) \ SC(number_of_symbols, V8.NumberOfSymbols) \
SC(inlined_copied_elements, V8.InlinedCopiedElements) \ SC(inlined_copied_elements, V8.InlinedCopiedElements) \
SC(arguments_adaptors, V8.ArgumentsAdaptors) \
SC(compilation_cache_hits, V8.CompilationCacheHits) \ SC(compilation_cache_hits, V8.CompilationCacheHits) \
SC(compilation_cache_misses, V8.CompilationCacheMisses) \ SC(compilation_cache_misses, V8.CompilationCacheMisses) \
/* Amount of evaled source code. */ \ /* Amount of evaled source code. */ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment