Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java @ 22604:b00cc0475f31
Update jvmci import: Refactoring: Rename Kind to JavaKind.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 08 Sep 2015 19:57:39 +0200 |
parents | 74b3e5c0209c |
children | 05183a084a08 |
comparison
equal
deleted
inserted
replaced
22603:6d339ba0edc5 | 22604:b00cc0475f31 |
---|---|
334 compilationResult.setBytecodeSize(bytecodeSize); | 334 compilationResult.setBytecodeSize(bytecodeSize); |
335 } | 335 } |
336 | 336 |
337 if (Debug.isMeterEnabled()) { | 337 if (Debug.isMeterEnabled()) { |
338 List<DataPatch> ldp = compilationResult.getDataPatches(); | 338 List<DataPatch> ldp = compilationResult.getDataPatches(); |
339 Kind[] kindValues = Kind.values(); | 339 JavaKind[] kindValues = JavaKind.values(); |
340 DebugMetric[] dms = new DebugMetric[kindValues.length]; | 340 DebugMetric[] dms = new DebugMetric[kindValues.length]; |
341 for (int i = 0; i < dms.length; i++) { | 341 for (int i = 0; i < dms.length; i++) { |
342 dms[i] = Debug.metric("DataPatches-%s", kindValues[i]); | 342 dms[i] = Debug.metric("DataPatches-%s", kindValues[i]); |
343 } | 343 } |
344 | 344 |
345 for (DataPatch dp : ldp) { | 345 for (DataPatch dp : ldp) { |
346 Kind kind = Kind.Illegal; | 346 JavaKind kind = JavaKind.Illegal; |
347 if (dp.reference instanceof ConstantReference) { | 347 if (dp.reference instanceof ConstantReference) { |
348 VMConstant constant = ((ConstantReference) dp.reference).getConstant(); | 348 VMConstant constant = ((ConstantReference) dp.reference).getConstant(); |
349 kind = ((JavaConstant) constant).getKind(); | 349 kind = ((JavaConstant) constant).getJavaKind(); |
350 } | 350 } |
351 dms[kind.ordinal()].add(1); | 351 dms[kind.ordinal()].add(1); |
352 } | 352 } |
353 | 353 |
354 Debug.metric("CompilationResults").increment(); | 354 Debug.metric("CompilationResults").increment(); |