never@1445: /* trims@1907: * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. never@1445: * Copyright 2007, 2008, 2009 Red Hat, Inc. never@1445: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. never@1445: * never@1445: * This code is free software; you can redistribute it and/or modify it never@1445: * under the terms of the GNU General Public License version 2 only, as never@1445: * published by the Free Software Foundation. never@1445: * never@1445: * This code is distributed in the hope that it will be useful, but WITHOUT never@1445: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or never@1445: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License never@1445: * version 2 for more details (a copy is included in the LICENSE file that never@1445: * accompanied this code). never@1445: * never@1445: * You should have received a copy of the GNU General Public License version never@1445: * 2 along with this work; if not, write to the Free Software Foundation, never@1445: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. never@1445: * trims@1907: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: * or visit www.oracle.com if you need additional information or have any trims@1907: * questions. never@1445: * never@1445: */ never@1445: never@1445: #include "incls/_precompiled.incl" never@1445: #include "incls/_assembler_zero.cpp.incl" never@1445: never@1445: int AbstractAssembler::code_fill_byte() { never@1445: return 0; never@1445: } never@1445: never@1445: void Assembler::pd_patch_instruction(address branch, address target) { never@1445: ShouldNotCallThis(); never@1445: } never@1445: never@1445: #ifndef PRODUCT never@1445: void Assembler::pd_print_patched_instruction(address branch) { never@1445: ShouldNotCallThis(); never@1445: } never@1445: #endif // PRODUCT never@1445: never@1445: void MacroAssembler::align(int modulus) { never@1445: while (offset() % modulus != 0) never@1445: emit_byte(AbstractAssembler::code_fill_byte()); never@1445: } never@1445: never@1445: void MacroAssembler::bang_stack_with_offset(int offset) { never@1445: ShouldNotCallThis(); never@1445: } never@1445: never@1445: void MacroAssembler::advance(int bytes) { never@1445: _code_pos += bytes; never@1445: sync(); never@1445: } never@1445: never@1445: RegisterOrConstant MacroAssembler::delayed_value_impl( never@1445: intptr_t* delayed_value_addr, Register tmpl, int offset) { never@1445: ShouldNotCallThis(); never@1445: } never@1445: never@1445: void MacroAssembler::store_oop(jobject obj) { never@1445: code_section()->relocate(pc(), oop_Relocation::spec_for_immediate()); never@1445: emit_address((address) obj); never@1445: } never@1445: never@1445: static void should_not_call() { never@1445: report_should_not_call(__FILE__, __LINE__); never@1445: } never@1445: never@1445: address ShouldNotCallThisStub() { never@1445: return (address) should_not_call; never@1445: } never@1445: never@1445: address ShouldNotCallThisEntry() { never@1445: return (address) should_not_call; never@1445: }