< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/HotSpotForeignCallLinkageImpl.java
Print this page
rev 56282 : [mq]: graal
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -23,11 +23,11 @@
package org.graalvm.compiler.hotspot;
import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime;
-import static org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage.RegisterEffect.DESTROYS_REGISTERS;
+import static org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage.RegisterEffect.DESTROYS_ALL_CALLER_SAVE_REGISTERS;
import jdk.internal.vm.compiler.collections.EconomicSet;
import org.graalvm.compiler.core.common.spi.ForeignCallDescriptor;
import org.graalvm.compiler.core.target.Backend;
import org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProvider;
@@ -182,10 +182,15 @@
public boolean isGuaranteedSafepoint() {
return transition == Transition.SAFEPOINT;
}
@Override
+ public RegisterEffect getEffect() {
+ return effect;
+ }
+
+ @Override
public LocationIdentity[] getKilledLocations() {
return killedLocations;
}
@Override
@@ -266,11 +271,11 @@
return address;
}
@Override
public boolean destroysRegisters() {
- return effect == DESTROYS_REGISTERS;
+ return effect == DESTROYS_ALL_CALLER_SAVE_REGISTERS;
}
@Override
public boolean needsDebugInfo() {
return transition == Transition.SAFEPOINT;
< prev index next >