Mercurial > hg > graal-compiler
comparison src/cpu/zero/vm/interpreter_zero.hpp @ 1506:2338d41fbd81
6943304: remove tagged stack interpreter
Reviewed-by: coleenp, never, gbenson
author | twisti |
---|---|
date | Fri, 30 Apr 2010 08:37:24 -0700 |
parents | 354d3184f6b2 |
children | 68d6683eaef7 |
comparison
equal
deleted
inserted
replaced
1505:0c5b3cf3c1f5 | 1506:2338d41fbd81 |
---|---|
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 } |