never@1445: /* stefank@2314: * Copyright (c) 2003, 2010, 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: stefank@2314: #include "precompiled.hpp" stefank@2314: #include "assembler_zero.inline.hpp" stefank@2314: #include "gc_interface/collectedHeap.inline.hpp" stefank@2314: #include "interpreter/interpreter.hpp" stefank@2314: #include "memory/cardTableModRefBS.hpp" stefank@2314: #include "memory/resourceArea.hpp" stefank@2314: #include "prims/methodHandles.hpp" stefank@2314: #include "runtime/biasedLocking.hpp" stefank@2314: #include "runtime/interfaceSupport.hpp" stefank@2314: #include "runtime/objectMonitor.hpp" stefank@2314: #include "runtime/os.hpp" stefank@2314: #include "runtime/sharedRuntime.hpp" stefank@2314: #include "runtime/stubRoutines.hpp" jprovino@4542: #include "utilities/macros.hpp" jprovino@4542: #if INCLUDE_ALL_GCS stefank@2314: #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" stefank@2314: #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp" stefank@2314: #include "gc_implementation/g1/heapRegion.hpp" jprovino@4542: #endif // INCLUDE_ALL_GCS never@1445: never@1445: int AbstractAssembler::code_fill_byte() { never@1445: return 0; never@1445: } never@1445: twisti@4323: #ifdef ASSERT twisti@4323: bool AbstractAssembler::pd_check_instruction_mark() { twisti@4323: ShouldNotCallThis(); twisti@4323: } twisti@4323: #endif twisti@4323: never@1445: void Assembler::pd_patch_instruction(address branch, address target) { never@1445: ShouldNotCallThis(); never@1445: } never@1445: never@1445: void MacroAssembler::align(int modulus) { never@1445: while (offset() % modulus != 0) twisti@4366: emit_int8(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) { bharadwaj@4351: code_section()->set_end(code_section()->end() + bytes); 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: twisti@4314: void MacroAssembler::store_Metadata(Metadata* md) { twisti@4314: code_section()->relocate(pc(), metadata_Relocation::spec_for_immediate()); twisti@4314: emit_address((address) md); twisti@4314: } twisti@4314: 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: }