equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2015, 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. |
213 // initially corresponds to the index into the methods array. |
213 // initially corresponds to the index into the methods array. |
214 // but this may change with redefinition |
214 // but this may change with redefinition |
215 u2 _max_stack; // Maximum number of entries on the expression stack |
215 u2 _max_stack; // Maximum number of entries on the expression stack |
216 u2 _max_locals; // Number of local variables used by this method |
216 u2 _max_locals; // Number of local variables used by this method |
217 u2 _size_of_parameters; // size of the parameter block (receiver + arguments) in words |
217 u2 _size_of_parameters; // size of the parameter block (receiver + arguments) in words |
|
218 u2 _orig_method_idnum; // Original unique identification number for the method |
218 |
219 |
219 // Constructor |
220 // Constructor |
220 ConstMethod(int byte_code_size, |
221 ConstMethod(int byte_code_size, |
221 InlineTableSizes* sizes, |
222 InlineTableSizes* sizes, |
222 MethodType is_overpass, |
223 MethodType is_overpass, |
471 static const u2 MAX_IDNUM; |
472 static const u2 MAX_IDNUM; |
472 static const u2 UNSET_IDNUM; |
473 static const u2 UNSET_IDNUM; |
473 u2 method_idnum() const { return _method_idnum; } |
474 u2 method_idnum() const { return _method_idnum; } |
474 void set_method_idnum(u2 idnum) { _method_idnum = idnum; } |
475 void set_method_idnum(u2 idnum) { _method_idnum = idnum; } |
475 |
476 |
|
477 u2 orig_method_idnum() const { return _orig_method_idnum; } |
|
478 void set_orig_method_idnum(u2 idnum) { _orig_method_idnum = idnum; } |
|
479 |
476 // max stack |
480 // max stack |
477 int max_stack() const { return _max_stack; } |
481 int max_stack() const { return _max_stack; } |
478 void set_max_stack(int size) { _max_stack = size; } |
482 void set_max_stack(int size) { _max_stack = size; } |
479 |
483 |
480 // max locals |
484 // max locals |