Mercurial > hg > truffle
comparison graal/Compiler/src/com/sun/c1x/ir/DefaultValueVisitor.java @ 2507:9ec15d6914ca
Pull over of compiler from maxine repository.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 11:43:22 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2506:4a3bf8a5bf41 | 2507:9ec15d6914ca |
---|---|
1 /* | |
2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
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 | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
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 | |
21 * questions. | |
22 */ | |
23 package com.sun.c1x.ir; | |
24 | |
25 /** | |
26 * A default implementation of {@link ValueVisitor} that simply | |
27 * does nothing for each value visited. This convenience class | |
28 * simplifies implementing a value visitor that is only interested | |
29 * in a subset of the value types. | |
30 * | |
31 * @author Doug Simon | |
32 */ | |
33 public class DefaultValueVisitor extends ValueVisitor { | |
34 | |
35 /** | |
36 * All the specific visitor methods in this class call this method by default. | |
37 * | |
38 * @param value the value being visited | |
39 */ | |
40 protected void visit(Value value) { | |
41 } | |
42 | |
43 // Checkstyle: stop | |
44 @Override public void visitArithmeticOp(ArithmeticOp i) { visit(i); } | |
45 @Override public void visitArrayCopy(ArrayCopy i) { visit(i); } | |
46 @Override public void visitArrayLength(ArrayLength i) { visit(i); } | |
47 @Override public void visitBase(Base i) { visit(i); } | |
48 @Override public void visitBlockBegin(BlockBegin i) { visit(i); } | |
49 @Override public void visitBoundsCheck(BoundsCheck i) { visit(i); } | |
50 @Override public void visitBreakpointTrap(BreakpointTrap i) {visit(i); } | |
51 @Override public void visitCheckCast(CheckCast i) { visit(i); } | |
52 @Override public void visitCompareOp(CompareOp i) { visit(i); } | |
53 @Override public void visitCompareAndSwap(CompareAndSwap i) { visit(i); } | |
54 @Override public void visitConstant(Constant i) { visit(i); } | |
55 @Override public void visitConvert(Convert i) { visit(i); } | |
56 @Override public void visitExceptionObject(ExceptionObject i) { visit(i); } | |
57 @Override public void visitGoto(Goto i) { visit(i); } | |
58 @Override public void visitIncrementRegister(IncrementRegister i) { visit(i); } | |
59 @Override public void visitIf(If i) { visit(i); } | |
60 @Override public void visitIfOp(IfOp i) { visit(i); } | |
61 @Override public void visitInfopoint(Infopoint i) { visit(i); } | |
62 @Override public void visitInstanceOf(InstanceOf i) { visit(i); } | |
63 @Override public void visitIntrinsic(Intrinsic i) { visit(i); } | |
64 @Override public void visitInvoke(Invoke i) { visit(i); } | |
65 @Override public void visitLoadField(LoadField i) { visit(i); } | |
66 @Override public void visitLoadIndexed(LoadIndexed i) { visit(i); } | |
67 @Override public void visitLoadPointer(LoadPointer i) { visit(i); } | |
68 @Override public void visitLoadRegister(LoadRegister i) { visit(i); } | |
69 @Override public void visitAllocateStackHandle(StackHandle i) { visit(i); } | |
70 @Override public void visitLocal(Local i) { visit(i); } | |
71 @Override public void visitLogicOp(LogicOp i) { visit(i); } | |
72 @Override public void visitLookupSwitch(LookupSwitch i) { visit(i); } | |
73 @Override public void visitMemoryBarrier(MemoryBarrier i) { visit(i); } | |
74 @Override public void visitMonitorAddress(MonitorAddress i) { visit(i); } | |
75 @Override public void visitMonitorEnter(MonitorEnter i) { visit(i); } | |
76 @Override public void visitMonitorExit(MonitorExit i) { visit(i); } | |
77 @Override public void visitNativeCall(NativeCall i) { visit(i); } | |
78 @Override public void visitNegateOp(NegateOp i) { visit(i); } | |
79 @Override public void visitNewInstance(NewInstance i) { visit(i); } | |
80 @Override public void visitNewMultiArray(NewMultiArray i) { visit(i); } | |
81 @Override public void visitNewObjectArray(NewObjectArray i) { visit(i); } | |
82 @Override public void visitNewObjectArrayClone(NewObjectArrayClone i) { visit(i); } | |
83 @Override public void visitNewTypeArray(NewTypeArray i) { visit(i); } | |
84 @Override public void visitNullCheck(NullCheck i) { visit(i); } | |
85 @Override public void visitOsrEntry(OsrEntry i) { visit(i); } | |
86 @Override public void visitPause(Pause i) { visit(i); } | |
87 @Override public void visitPhi(Phi i) { visit(i); } | |
88 @Override public void visitResolveClass(ResolveClass i) { visit(i); } | |
89 @Override public void visitReturn(Return i) { visit(i); } | |
90 @Override public void visitShiftOp(ShiftOp i) { visit(i); } | |
91 @Override public void visitSignificantBit(SignificantBitOp i) { visit(i); } | |
92 @Override public void visitStackAllocate(StackAllocate i) { visit(i); } | |
93 @Override public void visitStoreField(StoreField i) { visit(i); } | |
94 @Override public void visitStoreIndexed(StoreIndexed i) { visit(i); } | |
95 @Override public void visitStorePointer(StorePointer i) { visit(i); } | |
96 @Override public void visitStoreRegister(StoreRegister i) { visit(i); } | |
97 @Override public void visitTableSwitch(TableSwitch i) { visit(i); } | |
98 @Override public void visitTemplateCall(TemplateCall i) { visit(i); } | |
99 @Override public void visitTypeEqualityCheck(TypeEqualityCheck i) { visit(i); } | |
100 @Override public void visitThrow(Throw i) { visit(i); } | |
101 @Override public void visitUnsafeCast(UnsafeCast i) { visit(i); } | |
102 @Override public void visitUnsafeGetObject(UnsafeGetObject i) { visit(i); } | |
103 @Override public void visitUnsafeGetRaw(UnsafeGetRaw i) { visit(i); } | |
104 @Override public void visitUnsafePrefetchRead(UnsafePrefetchRead i) { visit(i); } | |
105 @Override public void visitUnsafePrefetchWrite(UnsafePrefetchWrite i) { visit(i); } | |
106 @Override public void visitUnsafePutObject(UnsafePutObject i) { visit(i); } | |
107 @Override public void visitUnsafePutRaw(UnsafePutRaw i) { visit(i); } | |
108 @Override public void visitUnsignedCompareOp(UnsignedCompareOp i) { visit(i); } | |
109 } |