Mercurial > hg > truffle
comparison graal/com.oracle.graal.asm.test/src/com/oracle/graal/asm/test/AssemblerTest.java @ 9653:36e12fbbefdf
replaced unnecessary call to Stub.getMethod() with Stub.toString()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 13 May 2013 11:00:56 +0200 |
parents | f94bb5d20e5d |
children | 23ccaa863eda |
comparison
equal
deleted
inserted
replaced
9652:e5533d2d40a3 | 9653:36e12fbbefdf |
---|---|
57 InstalledCode code = codeCache.addMethod(method, compResult); | 57 InstalledCode code = codeCache.addMethod(method, compResult); |
58 | 58 |
59 DisassemblerProvider dis = Graal.getRuntime().getCapability(DisassemblerProvider.class); | 59 DisassemblerProvider dis = Graal.getRuntime().getCapability(DisassemblerProvider.class); |
60 if (dis != null) { | 60 if (dis != null) { |
61 String disasm = dis.disassemble(code); | 61 String disasm = dis.disassemble(code); |
62 Assert.assertTrue(String.valueOf(code.getMethod()), disasm == null || disasm.length() > 0); | 62 Assert.assertTrue(code.toString(), disasm == null || disasm.length() > 0); |
63 } | 63 } |
64 return code; | 64 return code; |
65 } | 65 } |
66 | 66 |
67 protected Object runTest(String methodName, CodeGenTest test, Object... args) { | 67 protected Object runTest(String methodName, CodeGenTest test, Object... args) { |