DummyInterface.java revision 9111:a41fe5ffa839
1139804Simp/* 2177957Sattilio * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3177957Sattilio * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 424269Speter * 524269Speter * This code is free software; you can redistribute it and/or modify it 624269Speter * under the terms of the GNU General Public License version 2 only, as 724269Speter * published by the Free Software Foundation. 824269Speter * 9177957Sattilio * This code is distributed in the hope that it will be useful, but WITHOUT 10177957Sattilio * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11177957Sattilio * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1224269Speter * version 2 for more details (a copy is included in the LICENSE file that 13177957Sattilio * accompanied this code). 1424269Speter * 1524269Speter * You should have received a copy of the GNU General Public License version 16177957Sattilio * 2 along with this work; if not, write to the Free Software Foundation, 17177957Sattilio * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18177957Sattilio * 19177957Sattilio * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20177957Sattilio * or visit www.oracle.com if you need additional information or have any 21177957Sattilio * questions. 22177957Sattilio * 23177957Sattilio */ 2424269Speter 25177957Sattiliopackage compiler.jvmci.compilerToVM; 26177957Sattilio 2724269Speterinterface DummyInterface { 2824269Speter void dummyFunction(); 29194317Sattilio 30177957Sattilio default int dummyDefaultFunction(int x, int y) { 31233628Sfabient int z = x * y; 32192853Ssson return (int) (Math.cos(x - y + z) * 100); 33177957Sattilio } 34116182Sobrien} 35116182Sobrien