1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/cpu/zero/vm/assembler_zero.cpp Tue Oct 13 12:04:21 2009 -0700 1.3 @@ -0,0 +1,77 @@ 1.4 +/* 1.5 + * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 2007, 2008, 2009 Red Hat, Inc. 1.7 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 + * 1.9 + * This code is free software; you can redistribute it and/or modify it 1.10 + * under the terms of the GNU General Public License version 2 only, as 1.11 + * published by the Free Software Foundation. 1.12 + * 1.13 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.14 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.15 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.16 + * version 2 for more details (a copy is included in the LICENSE file that 1.17 + * accompanied this code). 1.18 + * 1.19 + * You should have received a copy of the GNU General Public License version 1.20 + * 2 along with this work; if not, write to the Free Software Foundation, 1.21 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.22 + * 1.23 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 1.24 + * CA 95054 USA or visit www.sun.com if you need additional information or 1.25 + * have any questions. 1.26 + * 1.27 + */ 1.28 + 1.29 +#include "incls/_precompiled.incl" 1.30 +#include "incls/_assembler_zero.cpp.incl" 1.31 + 1.32 +int AbstractAssembler::code_fill_byte() { 1.33 + return 0; 1.34 +} 1.35 + 1.36 +void Assembler::pd_patch_instruction(address branch, address target) { 1.37 + ShouldNotCallThis(); 1.38 +} 1.39 + 1.40 +#ifndef PRODUCT 1.41 +void Assembler::pd_print_patched_instruction(address branch) { 1.42 + ShouldNotCallThis(); 1.43 +} 1.44 +#endif // PRODUCT 1.45 + 1.46 +void MacroAssembler::align(int modulus) { 1.47 + while (offset() % modulus != 0) 1.48 + emit_byte(AbstractAssembler::code_fill_byte()); 1.49 +} 1.50 + 1.51 +void MacroAssembler::bang_stack_with_offset(int offset) { 1.52 + ShouldNotCallThis(); 1.53 +} 1.54 + 1.55 +void MacroAssembler::advance(int bytes) { 1.56 + _code_pos += bytes; 1.57 + sync(); 1.58 +} 1.59 + 1.60 +RegisterOrConstant MacroAssembler::delayed_value_impl( 1.61 + intptr_t* delayed_value_addr, Register tmpl, int offset) { 1.62 + ShouldNotCallThis(); 1.63 +} 1.64 + 1.65 +void MacroAssembler::store_oop(jobject obj) { 1.66 + code_section()->relocate(pc(), oop_Relocation::spec_for_immediate()); 1.67 + emit_address((address) obj); 1.68 +} 1.69 + 1.70 +static void should_not_call() { 1.71 + report_should_not_call(__FILE__, __LINE__); 1.72 +} 1.73 + 1.74 +address ShouldNotCallThisStub() { 1.75 + return (address) should_not_call; 1.76 +} 1.77 + 1.78 +address ShouldNotCallThisEntry() { 1.79 + return (address) should_not_call; 1.80 +}