Skip to content

Commit

Permalink
Showing 3 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -555,16 +555,12 @@ public EachNode(EachNode prev) {

@Specialization(guards = "isNull")
public RubyHash eachNull(RubyHash hash, RubyProc block) {
notDesignedForCompilation();

return hash;
}

@ExplodeLoop
@Specialization(guards = {"!isNull", "!isBuckets"})
public RubyHash eachPackedArray(VirtualFrame frame, RubyHash hash, RubyProc block) {
notDesignedForCompilation();

final Object[] store = (Object[]) hash.getStore();
final int size = hash.getSize();

Original file line number Diff line number Diff line change
@@ -1009,21 +1009,19 @@ public InstanceVariableSetNode(RubyContext context, SourceSection sourceSection)
public InstanceVariableSetNode(InstanceVariableSetNode prev) {
super(prev);
}

// TODO CS 4-Mar-15 this badly needs to be cached

@TruffleBoundary
@Specialization
public Object isInstanceVariableSet(RubyBasicObject object, RubyString name, Object value) {
notDesignedForCompilation();

notDesignedForCompilation();
public Object instanceVariableSet(RubyBasicObject object, RubyString name, Object value) {
object.getOperations().setInstanceVariable(object, RubyContext.checkInstanceVariableName(getContext(), name.toString(), this), value);
return value;
}

@TruffleBoundary
@Specialization
public Object isInstanceVariableSet(RubyBasicObject object, RubySymbol name, Object value) {
notDesignedForCompilation();

notDesignedForCompilation();
public Object instanceVariableSet(RubyBasicObject object, RubySymbol name, Object value) {
object.getOperations().setInstanceVariable(object, RubyContext.checkInstanceVariableName(getContext(), name.toString(), this), value);
return value;
}
Original file line number Diff line number Diff line change
@@ -295,8 +295,6 @@ public ToSNode(ToSNode prev) {

@Specialization
public RubyString toS(RubySymbol symbol) {
notDesignedForCompilation();

return getContext().makeString(symbol.getSymbolBytes().dup());
}

0 comments on commit 8bdf5bc

Please sign in to comment.