comparison src/share/vm/classfile/vmSymbols.cpp @ 2356:72dee110246f

6839872: remove implementation inheritance from JSR 292 APIs Summary: consolidate runtime support in java.dyn.MethodHandleNatives; include transitional compatibility logic Reviewed-by: twisti
author jrose
date Fri, 11 Mar 2011 22:33:47 -0800
parents 3582bf76420e
children fc9d8850ab8b
comparison
equal deleted inserted replaced
2355:799d8ccf63cf 2356:72dee110246f
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; \