if (VM.VerifyAssertions) VM._assert(declaringClass.isResolved());
if (VM.VerifyAssertions) VM._assert(getDeclaringClass().isResolved());
  public final synchronized void compile() {    if (VM.VerifyAssertions) VM._assert(declaringClass.isResolved());    if (isCompiled()) return;    if (VM.TraceClassLoading && VM.runningVM)  VM.sysWrite("VM_Method: (begin) compiling " + this + "\n");    VM_CompiledMethod cm = genCode();    // Ensure that cm wasn't invalidated while it was being compiled.    synchronized(cm) {      if (cm.isInvalid()) {        VM_CompiledMethods.setCompiledMethodObsolete(cm);      } else {        currentCompiledMethod = cm;      }    }    if (VM.TraceClassLoading && VM.runningVM)  VM.sysWrite("VM_Method: (end)   compiling " + this + "\n");  }