Mercurial > hg > truffle
comparison src/share/vm/c1/c1_GraphBuilder.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 | 46f6f063b272 |
children | 7894695caee6 f98f5d48f511 |
comparison
equal
deleted
inserted
replaced
11079:738e04fb1232 | 11080:b800986664f4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 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. |
3459 // Also to prevent commoning reads from this field across safepoint | 3459 // Also to prevent commoning reads from this field across safepoint |
3460 // since GC can change its value. | 3460 // since GC can change its value. |
3461 preserves_state = true; | 3461 preserves_state = true; |
3462 break; | 3462 break; |
3463 | 3463 |
3464 case vmIntrinsics::_updateCRC32: | |
3465 case vmIntrinsics::_updateBytesCRC32: | |
3466 case vmIntrinsics::_updateByteBufferCRC32: | |
3467 if (!UseCRC32Intrinsics) return false; | |
3468 cantrap = false; | |
3469 preserves_state = true; | |
3470 break; | |
3471 | |
3464 case vmIntrinsics::_loadFence : | 3472 case vmIntrinsics::_loadFence : |
3465 case vmIntrinsics::_storeFence: | 3473 case vmIntrinsics::_storeFence: |
3466 case vmIntrinsics::_fullFence : | 3474 case vmIntrinsics::_fullFence : |
3467 break; | 3475 break; |
3468 | 3476 |