You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by mf...@apache.org on 2007/06/19 15:06:57 UTC
svn commit: r548715 -
/harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp
Author: mfursov
Date: Tue Jun 19 06:06:55 2007
New Revision: 548715
URL: http://svn.apache.org/viewvc?view=rev&rev=548715
Log:
Fix for regression introduced by H2092 commit.
Modified:
harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp
Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp?view=diff&rev=548715&r1=548714&r2=548715
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp Tue Jun 19 06:06:55 2007
@@ -362,6 +362,13 @@
// read the field
cmpxchg8b(true, gr4);
vpush2(eax, edx);
+
+ //TODO: do not mark registers as global, restore old value here!
+ if (is_callee_save(gr0)) m_global_rusage.set(ar_idx(gr0));
+ if (is_callee_save(gr1)) m_global_rusage.set(ar_idx(gr1));
+ if (is_callee_save(gr2)) m_global_rusage.set(ar_idx(gr2));
+ if (is_callee_save(gr3)) m_global_rusage.set(ar_idx(gr3));
+ if (is_callee_save(gr4)) m_global_rusage.set(ar_idx(gr4));
} else {
Opnd where_hi(jt, where.base(), where.disp()+4,
where.index(), where.scale());
@@ -418,7 +425,6 @@
((!fieldOp.fld) || field_is_volatile(fieldOp.fld))) {
Val& val = vstack(0);
Val& val_hi = vstack(1);
-
// prepare address
freeReg(gr4); // ESI
lea(gr4,where);
@@ -440,6 +446,14 @@
cmpxchg8b(true, gr4);
unsigned br_off = br(nz, 0, 0);
patch(br_off, ip(_loop));
+
+ //TODO: do not mark registers as global, restore old value here!
+ if (is_callee_save(gr0)) m_global_rusage.set(ar_idx(gr0));
+ if (is_callee_save(gr1)) m_global_rusage.set(ar_idx(gr1));
+ if (is_callee_save(gr2)) m_global_rusage.set(ar_idx(gr2));
+ if (is_callee_save(gr3)) m_global_rusage.set(ar_idx(gr3));
+ if (is_callee_save(gr4)) m_global_rusage.set(ar_idx(gr4));
+
} else {
Val& val = vstack(0, vis_mem(0));
do_mov(where, val, fieldIsMagic);
Re: [general] Commit messages (was: Re: svn commit: r548715 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp)
Posted by Mikhail Fursov <mi...@gmail.com>.
Ok, I've got it.
On 6/19/07, Tim Ellison <t....@gmail.com> wrote:
>
> Apologies in advance for whining...
>
> A minor point but please will you spell out the JIRA issue identifiers
> in full in commit messages, i.e. HARMONY-2092 and not H2092, because
> then JIRA will automatically create links to the commits that were made
> for that issue (see the "Subversion commits" link just above each
> issue's comments).
>
> Thanks,
> Tim
>
> mfursov@apache.org wrote:
> > Author: mfursov
> > Date: Tue Jun 19 06:06:55 2007
> > New Revision: 548715
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=548715
> > Log:
> > Fix for regression introduced by H2092 commit.
> >
> >
> > Modified:
> > harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp
>
>
--
Mikhail Fursov
[general] Commit messages (was: Re: svn commit: r548715 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp)
Posted by Tim Ellison <t....@gmail.com>.
Apologies in advance for whining...
A minor point but please will you spell out the JIRA issue identifiers
in full in commit messages, i.e. HARMONY-2092 and not H2092, because
then JIRA will automatically create links to the commits that were made
for that issue (see the "Subversion commits" link just above each
issue's comments).
Thanks,
Tim
mfursov@apache.org wrote:
> Author: mfursov
> Date: Tue Jun 19 06:06:55 2007
> New Revision: 548715
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=548715
> Log:
> Fix for regression introduced by H2092 commit.
>
>
> Modified:
> harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_fld_arr.cpp