Mercurial > hg > graal-jvmci-8
comparison src/share/vm/interpreter/rewriter.hpp @ 1565:ab102d5d923e
6939207: refactor constant pool index processing
Summary: Factored cleanup of instruction decode which prepares for enhanced ldc semantics.
Reviewed-by: twisti
author | jrose |
---|---|
date | Sun, 23 May 2010 01:38:26 -0700 |
parents | dd57230ba8fe |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1564:61b2245abf36 | 1565:ab102d5d923e |
---|---|
1 /* | 1 /* |
2 * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 1998-2010 Sun Microsystems, Inc. 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. |
62 void compute_index_maps(); | 62 void compute_index_maps(); |
63 void make_constant_pool_cache(TRAPS); | 63 void make_constant_pool_cache(TRAPS); |
64 void scan_method(methodOop m); | 64 void scan_method(methodOop m); |
65 methodHandle rewrite_jsrs(methodHandle m, TRAPS); | 65 methodHandle rewrite_jsrs(methodHandle m, TRAPS); |
66 void rewrite_Object_init(methodHandle m, TRAPS); | 66 void rewrite_Object_init(methodHandle m, TRAPS); |
67 int rewrite_member_reference(address bcp, int offset); | 67 void rewrite_member_reference(address bcp, int offset); |
68 void rewrite_invokedynamic(address bcp, int offset, int cp_index); | 68 void rewrite_invokedynamic(address bcp, int offset); |
69 | 69 |
70 public: | 70 public: |
71 // Driver routine: | 71 // Driver routine: |
72 static void rewrite(instanceKlassHandle klass, TRAPS); | 72 static void rewrite(instanceKlassHandle klass, TRAPS); |
73 static void rewrite(instanceKlassHandle klass, constantPoolHandle cpool, objArrayHandle methods, TRAPS); | 73 static void rewrite(instanceKlassHandle klass, constantPoolHandle cpool, objArrayHandle methods, TRAPS); |