Skip to content

Commit

Permalink
[Truffle] This specialization should be ready for compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Mar 3, 2015
1 parent 9725d6f commit 15b58ec
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -312,8 +312,6 @@ public Object getIndex(RubyString string, int index, @SuppressWarnings("unused")

@Specialization(guards = { "!isRubyRange(arguments[1])", "!isRubyRegexp(arguments[1])", "!isRubyString(arguments[1])" })
public Object getIndex(VirtualFrame frame, RubyString string, Object index, UndefinedPlaceholder undefined) {
notDesignedForCompilation();

if (toIntNode == null) {
CompilerDirectives.transferToInterpreter();
toIntNode = insert(ToIntNodeFactory.create(getContext(), getSourceSection(), null));
Expand Down

0 comments on commit 15b58ec

Please sign in to comment.