Mercurial > hg > graal-jvmci-8
comparison src/share/vm/interpreter/templateInterpreter.cpp @ 11080:b800986664f4
7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
Summary: add intrinsics using new instruction to interpreter, C1, C2, for suitable x86; add test
Reviewed-by: kvn, twisti
author | drchase |
---|---|
date | Tue, 02 Jul 2013 20:42:12 -0400 |
parents | a3e2f723f2a5 |
children | 6b0fd0964b87 bd3237e0e18d |
comparison
equal
deleted
inserted
replaced
11079:738e04fb1232 | 11080:b800986664f4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, 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. |
370 method_entry(java_lang_math_log ) | 370 method_entry(java_lang_math_log ) |
371 method_entry(java_lang_math_log10) | 371 method_entry(java_lang_math_log10) |
372 method_entry(java_lang_math_exp ) | 372 method_entry(java_lang_math_exp ) |
373 method_entry(java_lang_math_pow ) | 373 method_entry(java_lang_math_pow ) |
374 method_entry(java_lang_ref_reference_get) | 374 method_entry(java_lang_ref_reference_get) |
375 | |
376 if (UseCRC32Intrinsics) { | |
377 method_entry(java_util_zip_CRC32_update) | |
378 method_entry(java_util_zip_CRC32_updateBytes) | |
379 method_entry(java_util_zip_CRC32_updateByteBuffer) | |
380 } | |
375 | 381 |
376 initialize_method_handle_entries(); | 382 initialize_method_handle_entries(); |
377 | 383 |
378 // all native method kinds (must be one contiguous block) | 384 // all native method kinds (must be one contiguous block) |
379 Interpreter::_native_entry_begin = Interpreter::code()->code_end(); | 385 Interpreter::_native_entry_begin = Interpreter::code()->code_end(); |