Reviewers: Erik Corry,

Description:
Fix use of live register as temporary

When flag --naive-counters was used this code trashed r1 which is actually live.

Please review this at http://codereview.chromium.org/1725009/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/arm/stub-cache-arm.cc


Index: src/arm/stub-cache-arm.cc
===================================================================
--- src/arm/stub-cache-arm.cc   (revision 4506)
+++ src/arm/stub-cache-arm.cc   (working copy)
@@ -1227,7 +1227,7 @@
   __ 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> code(function->code());
   ParameterCount expected(function->shared()->formal_parameter_count());


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to