1 /* |
1 /* |
2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
|
24 |
|
25 #ifndef SHARE_VM_UTILITIES_COPY_HPP |
|
26 #define SHARE_VM_UTILITIES_COPY_HPP |
|
27 |
|
28 #include "runtime/stubRoutines.hpp" |
24 |
29 |
25 // Assembly code for platforms that need it. |
30 // Assembly code for platforms that need it. |
26 extern "C" { |
31 extern "C" { |
27 void _Copy_conjoint_words(HeapWord* from, HeapWord* to, size_t count); |
32 void _Copy_conjoint_words(HeapWord* from, HeapWord* to, size_t count); |
28 void _Copy_disjoint_words(HeapWord* from, HeapWord* to, size_t count); |
33 void _Copy_disjoint_words(HeapWord* from, HeapWord* to, size_t count); |
315 } |
320 } |
316 #endif |
321 #endif |
317 } |
322 } |
318 |
323 |
319 // Platform dependent implementations of the above methods. |
324 // Platform dependent implementations of the above methods. |
320 #include "incls/_copy_pd.hpp.incl" |
325 #ifdef TARGET_ARCH_x86 |
|
326 # include "copy_x86.hpp" |
|
327 #endif |
|
328 #ifdef TARGET_ARCH_sparc |
|
329 # include "copy_sparc.hpp" |
|
330 #endif |
|
331 #ifdef TARGET_ARCH_zero |
|
332 # include "copy_zero.hpp" |
|
333 #endif |
|
334 |
321 }; |
335 }; |
|
336 |
|
337 #endif // SHARE_VM_UTILITIES_COPY_HPP |