CACAO
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
source
cacao
src
vm
jit
s390
md-stubs.hpp
Go to the documentation of this file.
1
/* src/vm/jit/s390/md-stubs.hpp - s390 JIT stubs
2
3
Copyright (C) 2008 Theobroma Systems Ltd.
4
5
This file is part of CACAO.
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2, or (at
10
your option) any later version.
11
12
This program is distributed in the hope that it will be useful, but
13
WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
02110-1301, USA.
21
22
*/
23
24
25
#ifndef _MD_STUBS_HPP
26
#define _MD_STUBS_HPP
27
28
#include "config.h"
29
30
#include "
vm/jit/s390/codegen.hpp
"
31
32
33
/**
34
* Return the code size of a compiler on a s390 architecture.
35
*
36
* @return Code size in bytes.
37
*/
38
int
CompilerStub::get_code_size
()
39
{
40
return
(
SZ_AHI
+
SZ_L
+
SZ_L
+
SZ_BCR
);
41
}
42
43
#endif // _MD_STUBS_HPP
44
45
46
/*
47
* These are local overrides for various environment variables in Emacs.
48
* Please do not remove this and leave it at the end of the file, where
49
* Emacs will automagically detect them.
50
* ---------------------------------------------------------------------
51
* Local variables:
52
* mode: c++
53
* indent-tabs-mode: t
54
* c-basic-offset: 4
55
* tab-width: 4
56
* End:
57
* vim:noexpandtab:sw=4:ts=4:
58
*/
codegen.hpp
SZ_AHI
#define SZ_AHI
Definition:
codegen.hpp:407
CompilerStub::get_code_size
static int get_code_size()
Return the code size of a compiler on the aarch64 architecture.
Definition:
md-stubs.hpp:38
SZ_L
#define SZ_L
Definition:
codegen.hpp:482
SZ_BCR
#define SZ_BCR
Definition:
codegen.hpp:423
Generated on Fri Aug 4 2017 02:01:50 for CACAO by
1.8.5