From e286ca9611ca4d3661a337faf7bc9f430e7187ef Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 26 Jun 2009 01:06:28 +0000 Subject: [PATCH] don't inline native methods --- Robust/src/IR/Flat/Inliner.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Robust/src/IR/Flat/Inliner.java b/Robust/src/IR/Flat/Inliner.java index bd87b314..780856b4 100644 --- a/Robust/src/IR/Flat/Inliner.java +++ b/Robust/src/IR/Flat/Inliner.java @@ -66,6 +66,9 @@ public class Inliner { public static Set inline(FlatCall fc, TypeUtil typeutil, State state) { MethodDescriptor md=fc.getMethod(); + if (md.getModifiers().isNative()) + return; + /* Do we need to do virtual dispatch? */ if (md.isStatic()||md.getReturnType()==null||singleCall(typeutil, fc.getThis().getType().getClassDesc(),md)) { //just reuse temps...makes problem with inlining recursion -- 2.34.1