annotate src/cpu/zero/vm/register_zero.cpp @ 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 f95d63e2154a
children
rev   line source
never@1010 1 /*
stefank@1879 2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
never@1010 3 * Copyright 2007 Red Hat, Inc.
never@1010 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
never@1010 5 *
never@1010 6 * This code is free software; you can redistribute it and/or modify it
never@1010 7 * under the terms of the GNU General Public License version 2 only, as
never@1010 8 * published by the Free Software Foundation.
never@1010 9 *
never@1010 10 * This code is distributed in the hope that it will be useful, but WITHOUT
never@1010 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
never@1010 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
never@1010 13 * version 2 for more details (a copy is included in the LICENSE file that
never@1010 14 * accompanied this code).
never@1010 15 *
never@1010 16 * You should have received a copy of the GNU General Public License version
never@1010 17 * 2 along with this work; if not, write to the Free Software Foundation,
never@1010 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
never@1010 19 *
trims@1472 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 21 * or visit www.oracle.com if you need additional information or have any
trims@1472 22 * questions.
never@1010 23 *
never@1010 24 */
never@1010 25
stefank@1879 26 #include "precompiled.hpp"
stefank@1879 27 #include "register_zero.hpp"
never@1010 28
never@1010 29 const int ConcreteRegisterImpl::max_gpr = RegisterImpl::number_of_registers;
never@1010 30 const int ConcreteRegisterImpl::max_fpr =
never@1010 31 ConcreteRegisterImpl::max_gpr + FloatRegisterImpl::number_of_registers;
never@1010 32
never@1010 33 const char* RegisterImpl::name() const {
never@1010 34 ShouldNotCallThis();
andrew@5819 35 return NULL;
never@1010 36 }
never@1010 37
never@1010 38 const char* FloatRegisterImpl::name() const {
never@1010 39 ShouldNotCallThis();
andrew@5819 40 return NULL;
never@1010 41 }