author | kvn |
Tue, 18 Dec 2012 17:47:50 -0800 | |
changeset 14851 | 5d879715aab6 |
parent 14631 | 526804361522 |
child 14822 | ff8e8aa78776 |
permissions | -rw-r--r-- |
4013 | 1 |
/* |
7397 | 2 |
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
4013 | 3 |
* Copyright 2007, 2008, 2009 Red Hat, Inc. |
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 |
* |
|
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 |
|
8 |
* published by the Free Software Foundation. |
|
9 |
* |
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
14 |
* accompanied this code). |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License version |
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
22 |
* questions. |
4013 | 23 |
* |
24 |
*/ |
|
25 |
||
7397 | 26 |
#include "precompiled.hpp" |
27 |
#include "assembler_zero.inline.hpp" |
|
28 |
#include "gc_interface/collectedHeap.inline.hpp" |
|
29 |
#include "interpreter/interpreter.hpp" |
|
30 |
#include "memory/cardTableModRefBS.hpp" |
|
31 |
#include "memory/resourceArea.hpp" |
|
32 |
#include "prims/methodHandles.hpp" |
|
33 |
#include "runtime/biasedLocking.hpp" |
|
34 |
#include "runtime/interfaceSupport.hpp" |
|
35 |
#include "runtime/objectMonitor.hpp" |
|
36 |
#include "runtime/os.hpp" |
|
37 |
#include "runtime/sharedRuntime.hpp" |
|
38 |
#include "runtime/stubRoutines.hpp" |
|
39 |
#ifndef SERIALGC |
|
40 |
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp" |
|
41 |
#include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp" |
|
42 |
#include "gc_implementation/g1/heapRegion.hpp" |
|
43 |
#endif |
|
4013 | 44 |
|
45 |
int AbstractAssembler::code_fill_byte() { |
|
46 |
return 0; |
|
47 |
} |
|
48 |
||
14631
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
49 |
#ifdef ASSERT |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
50 |
bool AbstractAssembler::pd_check_instruction_mark() { |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
51 |
ShouldNotCallThis(); |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
52 |
} |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
53 |
#endif |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
14622
diff
changeset
|
54 |
|
4013 | 55 |
void Assembler::pd_patch_instruction(address branch, address target) { |
56 |
ShouldNotCallThis(); |
|
57 |
} |
|
58 |
||
59 |
#ifndef PRODUCT |
|
60 |
void Assembler::pd_print_patched_instruction(address branch) { |
|
61 |
ShouldNotCallThis(); |
|
62 |
} |
|
63 |
#endif // PRODUCT |
|
64 |
||
65 |
void MacroAssembler::align(int modulus) { |
|
66 |
while (offset() % modulus != 0) |
|
67 |
emit_byte(AbstractAssembler::code_fill_byte()); |
|
68 |
} |
|
69 |
||
70 |
void MacroAssembler::bang_stack_with_offset(int offset) { |
|
71 |
ShouldNotCallThis(); |
|
72 |
} |
|
73 |
||
74 |
void MacroAssembler::advance(int bytes) { |
|
75 |
_code_pos += bytes; |
|
76 |
sync(); |
|
77 |
} |
|
78 |
||
79 |
RegisterOrConstant MacroAssembler::delayed_value_impl( |
|
80 |
intptr_t* delayed_value_addr, Register tmpl, int offset) { |
|
81 |
ShouldNotCallThis(); |
|
82 |
} |
|
83 |
||
84 |
void MacroAssembler::store_oop(jobject obj) { |
|
85 |
code_section()->relocate(pc(), oop_Relocation::spec_for_immediate()); |
|
86 |
emit_address((address) obj); |
|
87 |
} |
|
88 |
||
14622 | 89 |
void MacroAssembler::store_Metadata(Metadata* md) { |
90 |
code_section()->relocate(pc(), metadata_Relocation::spec_for_immediate()); |
|
91 |
emit_address((address) md); |
|
92 |
} |
|
93 |
||
4013 | 94 |
static void should_not_call() { |
95 |
report_should_not_call(__FILE__, __LINE__); |
|
96 |
} |
|
97 |
||
98 |
address ShouldNotCallThisStub() { |
|
99 |
return (address) should_not_call; |
|
100 |
} |
|
101 |
||
102 |
address ShouldNotCallThisEntry() { |
|
103 |
return (address) should_not_call; |
|
104 |
} |