if (VM.VerifyAssertions) VM._assert(declaringClass.isInstantiated());
if (VM.VerifyAssertions) VM._assert(getDeclaringClass().isInstantiated());
  public final synchronized void replaceCompiledMethod(VM_CompiledMethod compiledMethod) {    if (VM.VerifyAssertions) VM._assert(declaringClass.isInstantiated());    // If we're replacing with a non-null compiledMethod, ensure that is still valid!    if (compiledMethod != null) {      synchronized(compiledMethod) {        if (compiledMethod.isInvalid()) return;      }    }          // Grab version that is being replaced    VM_CompiledMethod oldCompiledMethod = currentCompiledMethod;    currentCompiledMethod = compiledMethod;    // Install the new method in jtoc/tib. If virtual, will also replace in    // all subclasses that inherited the method.    getDeclaringClass().updateMethod(this);    // Now that we've updated the jtoc/tib, old version is obsolete    if (oldCompiledMethod != null) {      VM_CompiledMethods.setCompiledMethodObsolete(oldCompiledMethod);    }  }