Thu, 10 Nov 2016 10:30:56 +0800
[Runtime] Remove redundant sync operations.
src/cpu/mips/vm/stubGenerator_mips_64.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cpu/mips/vm/stubGenerator_mips_64.cpp Thu Nov 10 10:14:33 2016 +0800 1.2 +++ b/src/cpu/mips/vm/stubGenerator_mips_64.cpp Thu Nov 10 10:30:56 2016 +0800 1.3 @@ -592,12 +592,10 @@ 1.4 __ li48(AT, (long)ct->byte_map_base); 1.5 __ dadd(AT, AT, T0); 1.6 __ dadd(AT, AT, T1); 1.7 + __ sb(R0, AT, 0); 1.8 + __ bgez(T1, l_0); 1.9 + __ delayed()->daddi(T1, T1, - 1); 1.10 __ sync(); 1.11 - __ sb(R0, AT, 0); 1.12 - //__ daddi(T1, T1, -4); 1.13 - __ daddi(T1, T1, - 1); 1.14 - __ bgez(T1, l_0); 1.15 - __ delayed()->nop(); 1.16 } 1.17 1.18 // Arguments: 1.19 @@ -1407,7 +1405,6 @@ 1.20 __ move(T0, A1); 1.21 __ move(T1, A2); 1.22 array_store_check(); 1.23 - if (Use3A2000) __ sync(); 1.24 } 1.25 1.26 // exit 1.27 @@ -1496,7 +1493,6 @@ 1.28 __ move(T0, A1); 1.29 __ move(T1, A2); 1.30 array_store_check(); 1.31 - if (Use3A2000) __ sync(); 1.32 } 1.33 __ bind(l_4); 1.34 __ pop(T8); 1.35 @@ -1567,7 +1563,6 @@ 1.36 __ move(T0, A1); 1.37 __ move(T1, A2); 1.38 array_store_check(); 1.39 - if (Use3A2000) __ sync(); 1.40 } 1.41 1.42 // exit 1.43 @@ -1652,7 +1647,6 @@ 1.44 __ move(T0, A1); 1.45 __ move(T1, A2); 1.46 array_store_check(); 1.47 - if (Use3A2000) __ sync(); 1.48 } 1.49 __ bind(l_4); 1.50 __ pop(T8);