Mercurial > hg > graal-jvmci-8
comparison src/share/vm/asm/assembler.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | abec000618bf |
children | 89152779163c |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
202 | 202 |
203 protected: | 203 protected: |
204 CodeSection* _code_section; // section within the code buffer | 204 CodeSection* _code_section; // section within the code buffer |
205 OopRecorder* _oop_recorder; // support for relocInfo::oop_type | 205 OopRecorder* _oop_recorder; // support for relocInfo::oop_type |
206 | 206 |
207 public: | |
208 // Code emission & accessing | 207 // Code emission & accessing |
209 address addr_at(int pos) const { return code_section()->start() + pos; } | 208 address addr_at(int pos) const { return code_section()->start() + pos; } |
210 | 209 |
211 protected: | 210 |
212 // This routine is called with a label is used for an address. | 211 // This routine is called with a label is used for an address. |
213 // Labels and displacements truck in offsets, but target must return a PC. | 212 // Labels and displacements truck in offsets, but target must return a PC. |
214 address target(Label& L) { return code_section()->target(L, pc()); } | 213 address target(Label& L) { return code_section()->target(L, pc()); } |
215 | 214 |
216 bool is8bit(int x) const { return -0x80 <= x && x < 0x80; } | 215 bool is8bit(int x) const { return -0x80 <= x && x < 0x80; } |