equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. |
275 #endif //ASSERT |
275 #endif //ASSERT |
276 |
276 |
277 return sid; |
277 return sid; |
278 } |
278 } |
279 |
279 |
|
280 vmSymbols::SID vmSymbols::find_sid(const char* symbol_name) { |
|
281 Symbol* symbol = SymbolTable::probe(symbol_name, (int) strlen(symbol_name)); |
|
282 if (symbol == NULL) return NO_SID; |
|
283 return find_sid(symbol); |
|
284 } |
|
285 |
280 static vmIntrinsics::ID wrapper_intrinsic(BasicType type, bool unboxing) { |
286 static vmIntrinsics::ID wrapper_intrinsic(BasicType type, bool unboxing) { |
281 #define TYPE2(type, unboxing) ((int)(type)*2 + ((unboxing) ? 1 : 0)) |
287 #define TYPE2(type, unboxing) ((int)(type)*2 + ((unboxing) ? 1 : 0)) |
282 switch (TYPE2(type, unboxing)) { |
288 switch (TYPE2(type, unboxing)) { |
283 #define BASIC_TYPE_CASE(type, box, unbox) \ |
289 #define BASIC_TYPE_CASE(type, box, unbox) \ |
284 case TYPE2(type, false): return vmIntrinsics::box; \ |
290 case TYPE2(type, false): return vmIntrinsics::box; \ |