equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, 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. |
170 } |
170 } |
171 static int bciOffset() { |
171 static int bciOffset() { |
172 return 2; |
172 return 2; |
173 } |
173 } |
174 public static int cellOffset(int index) { |
174 public static int cellOffset(int index) { |
175 return MethodData.cellSize + index * MethodData.cellSize; |
175 return (headerSizeInCells() + index) * MethodData.cellSize; |
176 } |
176 } |
177 // // Return a value which, when or-ed as a byte into _flags, sets the flag. |
177 // // Return a value which, when or-ed as a byte into _flags, sets the flag. |
178 // static int flagNumberToByteConstant(int flagNumber) { |
178 // static int flagNumberToByteConstant(int flagNumber) { |
179 // assert(0 <= flagNumber && flagNumber < flagLimit, "oob"); |
179 // assert(0 <= flagNumber && flagNumber < flagLimit, "oob"); |
180 // DataLayout temp; temp.setHeader(0); |
180 // DataLayout temp; temp.setHeader(0); |