comparison src/cpu/zero/vm/bytecodeInterpreter_zero.inline.hpp @ 5819:39f4affc6564

8143245: Zero build requires disabled warnings 8022956: Clang: enable return type warnings on BSD Summary: Based on work of Severin Gehwolf <sgehwolf@redhat.com> & Christian Thalinger <cthalinger@twitter.com> with additions for 7-only cases Reviewed-by: dholmes, coleenp, sla
author andrew
date Tue, 13 Feb 2018 06:42:27 +0000
parents 13b87063b4d8
children
comparison
equal deleted inserted replaced
2:50d1cb988bda 3:8deb1eec9a47
1 /* 1 /*
2 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
3 * Copyright 2007, 2010 Red Hat, Inc. 3 * Copyright 2007, 2010 Red Hat, Inc.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * 5 *
6 * This code is free software; you can redistribute it and/or modify it 6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as 7 * under the terms of the GNU General Public License version 2 only, as
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any 21 * or visit www.oracle.com if you need additional information or have any
22 * questions. 22 * questions.
23 * 23 *
24 */ 24 */
25
26 #ifndef CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_INLINE_HPP
27 #define CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_INLINE_HPP
25 28
26 // Inline interpreter functions for zero 29 // Inline interpreter functions for zero
27 30
28 inline jfloat BytecodeInterpreter::VMfloatAdd(jfloat op1, jfloat op2) { 31 inline jfloat BytecodeInterpreter::VMfloatAdd(jfloat op1, jfloat op2) {
29 return op1 + op2; 32 return op1 + op2;
297 } 300 }
298 301
299 inline jbyte BytecodeInterpreter::VMint2Byte(jint val) { 302 inline jbyte BytecodeInterpreter::VMint2Byte(jint val) {
300 return (jbyte) val; 303 return (jbyte) val;
301 } 304 }
305
306 #endif // CPU_ZERO_VM_BYTECODEINTERPRETER_ZERO_INLINE_HPP