| Index: src/arm/stub-cache-arm.cc
|
| ===================================================================
|
| --- src/arm/stub-cache-arm.cc (revision 3427)
|
| +++ src/arm/stub-cache-arm.cc (working copy)
|
| @@ -788,7 +788,7 @@
|
| __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
|
|
| // Jump to the cached code (tail call).
|
| - __ IncrementCounter(&Counters::call_global_inline, 1, r2, r3);
|
| + __ IncrementCounter(&COUNTER(call_global_inline), 1, r2, r3);
|
| ASSERT(function->is_compiled());
|
| Handle<Code> code(function->code());
|
| ParameterCount expected(function->shared()->formal_parameter_count());
|
| @@ -797,7 +797,7 @@
|
|
|
| // Handle call cache miss.
|
| __ bind(&miss);
|
| - __ IncrementCounter(&Counters::call_global_inline_miss, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(call_global_inline_miss), 1, r1, r3);
|
| Handle<Code> ic = ComputeCallMiss(arguments().immediate());
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| @@ -967,12 +967,12 @@
|
| __ mov(r2, Operand(Handle<JSGlobalPropertyCell>(cell)));
|
| __ str(r0, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset));
|
|
|
| - __ IncrementCounter(&Counters::named_store_global_inline, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(named_store_global_inline), 1, r1, r3);
|
| __ Ret();
|
|
|
| // Handle store cache miss.
|
| __ bind(&miss);
|
| - __ IncrementCounter(&Counters::named_store_global_inline_miss, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(named_store_global_inline_miss), 1, r1, r3);
|
| Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Miss));
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
|
|
| @@ -1114,11 +1114,11 @@
|
| __ b(eq, &miss);
|
| }
|
|
|
| - __ IncrementCounter(&Counters::named_load_global_inline, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(named_load_global_inline), 1, r1, r3);
|
| __ Ret();
|
|
|
| __ bind(&miss);
|
| - __ IncrementCounter(&Counters::named_load_global_inline_miss, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(named_load_global_inline_miss), 1, r1, r3);
|
| GenerateLoadMiss(masm(), Code::LOAD_IC);
|
|
|
| // Return the generated code.
|
| @@ -1268,7 +1268,7 @@
|
| // -- sp[4] : receiver
|
| // -----------------------------------
|
| Label miss;
|
| - __ IncrementCounter(&Counters::keyed_load_string_length, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(keyed_load_string_length), 1, r1, r3);
|
|
|
| __ ldr(r2, MemOperand(sp));
|
| __ ldr(r0, MemOperand(sp, kPointerSize)); // receiver
|
| @@ -1278,7 +1278,7 @@
|
|
|
| GenerateLoadStringLength2(masm(), r0, r1, r3, &miss);
|
| __ bind(&miss);
|
| - __ DecrementCounter(&Counters::keyed_load_string_length, 1, r1, r3);
|
| + __ DecrementCounter(&COUNTER(keyed_load_string_length), 1, r1, r3);
|
|
|
| GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
|
|
|
| @@ -1311,7 +1311,7 @@
|
| // -----------------------------------
|
| Label miss;
|
|
|
| - __ IncrementCounter(&Counters::keyed_store_field, 1, r1, r3);
|
| + __ IncrementCounter(&COUNTER(keyed_store_field), 1, r1, r3);
|
|
|
| // Check that the name has not changed.
|
| __ cmp(r2, Operand(Handle<String>(name)));
|
| @@ -1329,7 +1329,7 @@
|
| &miss);
|
| __ bind(&miss);
|
|
|
| - __ DecrementCounter(&Counters::keyed_store_field, 1, r1, r3);
|
| + __ DecrementCounter(&COUNTER(keyed_store_field), 1, r1, r3);
|
| __ mov(r2, Operand(Handle<String>(name))); // restore name register.
|
| Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Miss));
|
| __ Jump(ic, RelocInfo::CODE_TARGET);
|
| @@ -1466,8 +1466,8 @@
|
| // Remove caller arguments and receiver from the stack and return.
|
| __ add(sp, sp, Operand(r1, LSL, kPointerSizeLog2));
|
| __ add(sp, sp, Operand(kPointerSize));
|
| - __ IncrementCounter(&Counters::constructed_objects, 1, r1, r2);
|
| - __ IncrementCounter(&Counters::constructed_objects_stub, 1, r1, r2);
|
| + __ IncrementCounter(&COUNTER(constructed_objects), 1, r1, r2);
|
| + __ IncrementCounter(&COUNTER(constructed_objects_stub), 1, r1, r2);
|
| __ Jump(lr);
|
|
|
| // Jump to the generic stub in case the specialized code cannot handle the
|
|
|