Mercurial > hg > truffle
comparison src/cpu/zero/vm/cppInterpreter_zero.hpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | 4b95bbb36464 |
children | a3e2f723f2a5 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2010, 2011 Red Hat, Inc. | 3 * Copyright 2007, 2008, 2010, 2011 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * | 5 * |
6 * This code is free software; you can redistribute it and/or modify it | 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 | 7 * under the terms of the GNU General Public License version 2 only, as |
30 // Size of interpreter code | 30 // Size of interpreter code |
31 const static int InterpreterCodeSize = 6 * K; | 31 const static int InterpreterCodeSize = 6 * K; |
32 | 32 |
33 public: | 33 public: |
34 // Method entries | 34 // Method entries |
35 static int normal_entry(methodOop method, intptr_t UNUSED, TRAPS); | 35 static int normal_entry(Method* method, intptr_t UNUSED, TRAPS); |
36 static int native_entry(methodOop method, intptr_t UNUSED, TRAPS); | 36 static int native_entry(Method* method, intptr_t UNUSED, TRAPS); |
37 static int accessor_entry(methodOop method, intptr_t UNUSED, TRAPS); | 37 static int accessor_entry(Method* method, intptr_t UNUSED, TRAPS); |
38 static int empty_entry(methodOop method, intptr_t UNUSED, TRAPS); | 38 static int empty_entry(Method* method, intptr_t UNUSED, TRAPS); |
39 static int method_handle_entry(methodOop method, intptr_t UNUSED, TRAPS); | 39 static int method_handle_entry(Method* method, intptr_t UNUSED, TRAPS); |
40 | 40 |
41 public: | 41 public: |
42 // Main loop of normal_entry | 42 // Main loop of normal_entry |
43 static void main_loop(int recurse, TRAPS); | 43 static void main_loop(int recurse, TRAPS); |
44 | 44 |
51 static intptr_t* calculate_unwind_sp(ZeroStack* stack, oop method_handle); | 51 static intptr_t* calculate_unwind_sp(ZeroStack* stack, oop method_handle); |
52 static void throw_exception(JavaThread* thread, Symbol* name,char *msg=NULL); | 52 static void throw_exception(JavaThread* thread, Symbol* name,char *msg=NULL); |
53 | 53 |
54 private: | 54 private: |
55 // Fast result type determination | 55 // Fast result type determination |
56 static BasicType result_type_of(methodOop method); | 56 static BasicType result_type_of(Method* method); |
57 | 57 |
58 #endif // CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP | 58 #endif // CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP |