Revision: 4508
Author: [email protected]
Date: Tue Apr 27 02:11:33 2010
Log: 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
http://code.google.com/p/v8/source/detail?r=4508
Modified:
/branches/bleeding_edge/src/arm/stub-cache-arm.cc
=======================================
--- /branches/bleeding_edge/src/arm/stub-cache-arm.cc Mon Apr 26 07:25:29
2010
+++ /branches/bleeding_edge/src/arm/stub-cache-arm.cc Tue Apr 27 02:11:33
2010
@@ -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