Skip to content

Commit

Permalink
[Truffle] Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 10, 2017
1 parent c224cc7 commit 37b058d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -759,9 +759,8 @@ private String formatError(DynamicObject string) {
}

@Specialization(guards = { "isInitialized(regexp)", "isRubyString(string)", "isValidEncoding(string)" })
public Object searchRegion(VirtualFrame frame, DynamicObject regexp, DynamicObject string,
int start, int end, boolean forward,
@Cached("createX()") RopeNodes.MakeSubstringNode makeSubstringNode,
public Object searchRegion(VirtualFrame frame, DynamicObject regexp, DynamicObject string, int start, int end, boolean forward,
@Cached("create()") RopeNodes.MakeSubstringNode makeSubstringNode,
@Cached("createMethodCall()") CallDispatchHeadNode dupNode) {
final DynamicObject dupedString = (DynamicObject) dupNode.call(frame, string, "dup");
final Matcher matcher = RegexpNodes.createMatcher(getContext(), regexp, dupedString);
Expand Down
Expand Up @@ -46,7 +46,7 @@ public DynamicObject truncateLengthTooLong(DynamicObject string, int newByteLeng

@Specialization(guards = { "newByteLength >= 0", "isRubyString(string)", "!isNewLengthTooLarge(string, newByteLength)" })
public DynamicObject stealStorage(DynamicObject string, int newByteLength,
@Cached("createX()") RopeNodes.MakeSubstringNode makeSubstringNode) {
@Cached("create()") RopeNodes.MakeSubstringNode makeSubstringNode) {

StringOperations.setRope(string, makeSubstringNode.executeMake(rope(string), 0, newByteLength));

Expand Down

0 comments on commit 37b058d

Please sign in to comment.