Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 3db449c7d970b50727c293c99fe0bc6329380db6..3abaf1729f2d8bd5a2cc87a79b066d4e6e8a9c9d 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -379,7 +379,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
SmiIndex index = masm->SmiToIndex(rbx, rbx, kPointerSizeLog2); |
__ lea(rsp, Operand(rsp, index.reg, index.scale, 1 * kPointerSize)); |
__ push(rcx); |
- __ IncrementCounter(COUNTERS->constructed_objects(), 1); |
+ Counters* counters = masm->isolate()->counters(); |
+ __ IncrementCounter(counters->constructed_objects(), 1); |
__ ret(0); |
} |
@@ -1138,7 +1139,8 @@ static void ArrayNativeCode(MacroAssembler* masm, |
r8, |
kPreallocatedArrayElements, |
call_generic_code); |
- __ IncrementCounter(COUNTERS->array_function_native(), 1); |
+ Counters* counters = masm->isolate()->counters(); |
+ __ IncrementCounter(counters->array_function_native(), 1); |
__ movq(rax, rbx); |
__ ret(kPointerSize); |
@@ -1169,7 +1171,7 @@ static void ArrayNativeCode(MacroAssembler* masm, |
r9, |
true, |
call_generic_code); |
- __ IncrementCounter(COUNTERS->array_function_native(), 1); |
+ __ IncrementCounter(counters->array_function_native(), 1); |
__ movq(rax, rbx); |
__ ret(2 * kPointerSize); |
@@ -1191,7 +1193,7 @@ static void ArrayNativeCode(MacroAssembler* masm, |
r9, |
false, |
call_generic_code); |
- __ IncrementCounter(COUNTERS->array_function_native(), 1); |
+ __ IncrementCounter(counters->array_function_native(), 1); |
// rax: argc |
// rbx: JSArray |
@@ -1356,7 +1358,8 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
// ----------------------------------- |
Label invoke, dont_adapt_arguments; |
- __ IncrementCounter(COUNTERS->arguments_adaptors(), 1); |
+ Counters* counters = masm->isolate()->counters(); |
+ __ IncrementCounter(counters->arguments_adaptors(), 1); |
Label enough, too_few; |
__ cmpq(rax, rbx); |