From 3470a0c9c062c6551fed4005a5c85d2d5fd970b3 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 27 Apr 2010 09:11:33 +0000 Subject: [PATCH] Fix use of live register as temporary When flag --naive-counters was used this code trashed r1 which is actually live. Review URL: http://codereview.chromium.org/1725009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4508 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 6fef40b674..aec937d626 100644 --- a/src/arm/stub-cache-arm.cc +++ b/src/arm/stub-cache-arm.cc @@ -1227,7 +1227,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, r3, r4); ASSERT(function->is_compiled()); Handle code(function->code()); ParameterCount expected(function->shared()->formal_parameter_count());