writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context);
final VmWriteBarrier wb = context.getWriteBarrier(); if (wb != null) { os.writeMOV_Const(scratchReg, wb); writePUSH(scratchReg); writePUSH(field.getStaticsIndex()); writePUSH(valueReg); invokeJavaMethod(context.getPutstaticWriteBarrier(), context); }
    public final void writePutstaticWriteBarrier(X86CompilerContext context,            VmStaticField field, Register valueReg) {        if (field.isObjectRef()) {            writePUSH(field.getStaticsIndex());            writePUSH(valueReg);            invokeJavaMethod(context.getPutstaticWriteBarrier(), context);        }    }