< 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 **** /* ! * Copyright (c) 2012, 2018, 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. --- 1,7 ---- /* ! * 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,33 **** package org.graalvm.compiler.hotspot; import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime; ! import static org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage.RegisterEffect.DESTROYS_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; --- 23,33 ---- package org.graalvm.compiler.hotspot; import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime; ! 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,191 **** --- 182,196 ---- public boolean isGuaranteedSafepoint() { return transition == Transition.SAFEPOINT; } @Override + public RegisterEffect getEffect() { + return effect; + } + + @Override public LocationIdentity[] getKilledLocations() { return killedLocations; } @Override
*** 266,276 **** return address; } @Override public boolean destroysRegisters() { ! return effect == DESTROYS_REGISTERS; } @Override public boolean needsDebugInfo() { return transition == Transition.SAFEPOINT; --- 271,281 ---- return address; } @Override public boolean destroysRegisters() { ! return effect == DESTROYS_ALL_CALLER_SAVE_REGISTERS; } @Override public boolean needsDebugInfo() { return transition == Transition.SAFEPOINT;
< prev index next >