Mercurial > hg > truffle
comparison graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/GraphBuilderConfiguration.java @ 19982:e07cd1f09a9d
GraphBuilderConfiguration.copy() should do what it's javadoc says
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 20 Mar 2015 23:17:33 +0100 |
parents | b950967f74c7 |
children | 0f289b082d3d |
comparison
equal
deleted
inserted
replaced
19981:933bfa4995c8 | 19982:e07cd1f09a9d |
---|---|
166 * Creates a copy of this configuration with all its plugins. The {@link InvocationPlugins} in | 166 * Creates a copy of this configuration with all its plugins. The {@link InvocationPlugins} in |
167 * this configuration become the {@linkplain InvocationPlugins#getParent() parent} of the | 167 * this configuration become the {@linkplain InvocationPlugins#getParent() parent} of the |
168 * {@link InvocationPlugins} in the copy. | 168 * {@link InvocationPlugins} in the copy. |
169 */ | 169 */ |
170 public GraphBuilderConfiguration copy() { | 170 public GraphBuilderConfiguration copy() { |
171 Plugins newPlugins = new Plugins(new InvocationPlugins(plugins.getInvocationPlugins())); | 171 Plugins newPlugins = new Plugins(plugins); |
172 GraphBuilderConfiguration result = new GraphBuilderConfiguration(eagerResolving, omitAllExceptionEdges, debugInfoMode, skippedExceptionTypes, doLivenessAnalysis, newPlugins); | 172 GraphBuilderConfiguration result = new GraphBuilderConfiguration(eagerResolving, omitAllExceptionEdges, debugInfoMode, skippedExceptionTypes, doLivenessAnalysis, newPlugins); |
173 result.useProfiling = useProfiling; | 173 result.useProfiling = useProfiling; |
174 return result; | 174 return result; |
175 } | 175 } |
176 | 176 |