1 /* |
1 /* |
2 * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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. |
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 |
24 |
|
25 #include "precompiled.hpp" |
|
26 #include "classfile/systemDictionary.hpp" |
|
27 #include "compiler/compileLog.hpp" |
|
28 #include "memory/allocation.inline.hpp" |
|
29 #include "oops/objArrayKlass.hpp" |
|
30 #include "opto/addnode.hpp" |
|
31 #include "opto/cfgnode.hpp" |
|
32 #include "opto/compile.hpp" |
|
33 #include "opto/connode.hpp" |
|
34 #include "opto/loopnode.hpp" |
|
35 #include "opto/machnode.hpp" |
|
36 #include "opto/matcher.hpp" |
|
37 #include "opto/memnode.hpp" |
|
38 #include "opto/mulnode.hpp" |
|
39 #include "opto/phaseX.hpp" |
|
40 #include "opto/regmask.hpp" |
|
41 |
25 // Portions of code courtesy of Clifford Click |
42 // Portions of code courtesy of Clifford Click |
26 |
43 |
27 // Optimization - Graph Style |
44 // Optimization - Graph Style |
28 |
|
29 #include "incls/_precompiled.incl" |
|
30 #include "incls/_memnode.cpp.incl" |
|
31 |
45 |
32 static Node *step_through_mergemem(PhaseGVN *phase, MergeMemNode *mmem, const TypePtr *tp, const TypePtr *adr_check, outputStream *st); |
46 static Node *step_through_mergemem(PhaseGVN *phase, MergeMemNode *mmem, const TypePtr *tp, const TypePtr *adr_check, outputStream *st); |
33 |
47 |
34 //============================================================================= |
48 //============================================================================= |
35 uint MemNode::size_of() const { return sizeof(*this); } |
49 uint MemNode::size_of() const { return sizeof(*this); } |