From 6cdd89b165978fecefb8ecec45e7950c6d905709 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 1 Sep 2009 11:26:48 +0000 Subject: [PATCH] hange bad choice for scratch register for native code counters on ARM This caused running with native code counters on ARM to crash. Review URL: http://codereview.chromium.org/181031 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2792 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/arm/stub-cache-arm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc index 1581428d9b..745b541e54 100644 --- a/src/arm/stub-cache-arm.cc +++ b/src/arm/stub-cache-arm.cc @@ -791,7 +791,7 @@ Object* CallStubCompiler::CompileCallGlobal(JSObject* object, __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); // Jump to the cached code (tail call). - __ IncrementCounter(&Counters::call_global_inline, 1, r1, r3); + __ IncrementCounter(&Counters::call_global_inline, 1, r2, r3); ASSERT(function->is_compiled()); Handle code(function->code()); ParameterCount expected(function->shared()->formal_parameter_count());