equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2003-2010 Sun Microsystems, Inc. All Rights Reserved. |
3 * Copyright 2007, 2008 Red Hat, Inc. |
3 * Copyright 2007, 2008 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 |
36 |
36 |
37 public: |
37 public: |
38 static int expr_index_at(int i) { |
38 static int expr_index_at(int i) { |
39 return stackElementWords() * i; |
39 return stackElementWords() * i; |
40 } |
40 } |
41 static int expr_tag_index_at(int i) { |
|
42 assert(TaggedStackInterpreter, "should not call this"); |
|
43 Unimplemented(); |
|
44 } |
|
45 |
41 |
46 static int expr_offset_in_bytes(int i) { |
42 static int expr_offset_in_bytes(int i) { |
47 return stackElementSize() * i; |
43 return stackElementSize() * i; |
48 } |
44 } |
49 static int expr_tag_offset_in_bytes(int i) { |
|
50 assert(TaggedStackInterpreter, "should not call this"); |
|
51 Unimplemented(); |
|
52 } |
|
53 |
45 |
54 static int local_index_at(int i) { |
46 static int local_index_at(int i) { |
55 assert(i <= 0, "local direction already negated"); |
47 assert(i <= 0, "local direction already negated"); |
56 return stackElementWords() * i + (value_offset_in_bytes() / wordSize); |
48 return stackElementWords() * i; |
57 } |
49 } |
58 static int local_tag_index_at(int i) { |
|
59 assert(TaggedStackInterpreter, "should not call this"); |
|
60 Unimplemented(); |
|
61 } |
|