Skip to content

Commit

Permalink
[Truffle] Found an unexploded loop on the fastest part of the fast path!
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Oct 13, 2014
1 parent 2718f60 commit 4ce5caa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Expand Up @@ -38,10 +38,7 @@ public static Object[] pack(MethodLike method, MaterializedFrame declarationFram
packed[DECLARATION_FRAME_INDEX] = declarationFrame;
packed[SELF_INDEX] = self;
packed[BLOCK_INDEX] = block;

for (int n = 0; n < arguments.length; n++) {
packed[RUNTIME_ARGUMENT_COUNT + n] = arguments[n];
}
System.arraycopy(arguments, 0, packed, RUNTIME_ARGUMENT_COUNT, arguments.length);

return packed;
}
Expand Down
8 changes: 8 additions & 0 deletions test/truffle/pe/core/fixnum_pe.rb
Expand Up @@ -6,6 +6,14 @@
truffle_assert_constant 14
truffle_assert_constant 0xffffffffffff
end

describe "#+" do

example "a Fixnum" do
truffle_assert_constant 14 + 2
end

end

end

Expand Down

0 comments on commit 4ce5caa

Please sign in to comment.