Skip to content

Commit

Permalink
Merge 34e8d1f into 02da734
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Apr 27, 2020
2 parents 02da734 + 34e8d1f commit 9e27350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core-lib/Kernel.ns
Expand Up @@ -791,6 +791,8 @@ class Kernel vmMirror: vmMirror = Object <: Value (

(* Preserves capacity *)
public removeAll = (
firstIdx:: 1.
lastIdx:: 1.
storage:: Array new: storage size.
)

Expand Down
6 changes: 5 additions & 1 deletion src/som/interpreter/actors/WrapReferenceNode.java
Expand Up @@ -13,7 +13,11 @@ public abstract class WrapReferenceNode extends Node {

public abstract Object execute(Object ref, Actor target, Actor owner);

@Specialization(guards = "target == owner")
protected static final boolean notFarRef(final Object ref) {
return !(ref instanceof SFarReference);
}

@Specialization(guards = {"target == owner", "notFarRef(ref)"})
public Object inSameActor(final Object ref, final Actor target, final Actor owner) {
return ref;
}
Expand Down

0 comments on commit 9e27350

Please sign in to comment.