Reviewers: Mads Ager,

Description:
Avoid clobering register containing name in CompilerStoreGlobal.

Please review this at http://codereview.chromium.org/6519052/

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

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


Index: src/ia32/stub-cache-ia32.cc
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
index fdb22acea056ba3ed4581ca34ec1e9032bf11041..fabc275d18cb4878f5bafe4ab69814fe85263021 100644
--- a/src/ia32/stub-cache-ia32.cc
+++ b/src/ia32/stub-cache-ia32.cc
@@ -2586,8 +2586,8 @@ MaybeObject* StoreStubCompiler::CompileStoreGlobal(GlobalObject* object,
   // Compute the cell operand to use.
   Operand cell_operand = Operand::Cell(Handle<JSGlobalPropertyCell>(cell));
   if (Serializer::enabled()) {
-    __ mov(ecx, Immediate(Handle<JSGlobalPropertyCell>(cell)));
-    cell_operand = FieldOperand(ecx, JSGlobalPropertyCell::kValueOffset);
+    __ mov(ebx, Immediate(Handle<JSGlobalPropertyCell>(cell)));
+    cell_operand = FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset);
   }

   // Check that the value in the cell is not the hole. If it is, this


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

Reply via email to