Mercurial > hg > truffle
comparison src/share/vm/opto/library_call.cpp @ 7597:a3f92e6c0274
8006031: LibraryCallKit::inline_array_copyOf disabled unintentionally with 7172640
Reviewed-by: kvn
author | twisti |
---|---|
date | Fri, 11 Jan 2013 14:07:09 -0800 |
parents | c52660592f37 |
children | 6d1f5516534e |
comparison
equal
deleted
inserted
replaced
7578:d58b7b43031b | 7597:a3f92e6c0274 |
---|---|
3557 | 3557 |
3558 //------------------------inline_array_copyOf---------------------------- | 3558 //------------------------inline_array_copyOf---------------------------- |
3559 // public static <T,U> T[] java.util.Arrays.copyOf( U[] original, int newLength, Class<? extends T[]> newType); | 3559 // public static <T,U> T[] java.util.Arrays.copyOf( U[] original, int newLength, Class<? extends T[]> newType); |
3560 // public static <T,U> T[] java.util.Arrays.copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType); | 3560 // public static <T,U> T[] java.util.Arrays.copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType); |
3561 bool LibraryCallKit::inline_array_copyOf(bool is_copyOfRange) { | 3561 bool LibraryCallKit::inline_array_copyOf(bool is_copyOfRange) { |
3562 return false; | 3562 tty->print_cr("LibraryCallKit::inline_array_copyOf: %d", is_copyOfRange); |
3563 if (too_many_traps(Deoptimization::Reason_intrinsic)) return false; | 3563 if (too_many_traps(Deoptimization::Reason_intrinsic)) return false; |
3564 | 3564 |
3565 // Get the arguments. | 3565 // Get the arguments. |
3566 Node* original = argument(0); | 3566 Node* original = argument(0); |
3567 Node* start = is_copyOfRange? argument(1): intcon(0); | 3567 Node* start = is_copyOfRange? argument(1): intcon(0); |