1.1 --- a/src/share/vm/opto/type.cpp Mon Oct 22 02:50:45 2018 -0400 1.2 +++ b/src/share/vm/opto/type.cpp Mon Oct 22 05:26:38 2018 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -885,6 +885,13 @@ 1.11 st->print(" [narrowklass]"); 1.12 } 1.13 } 1.14 + 1.15 +//----------------------------------------------------------------------------- 1.16 +const char* Type::str(const Type* t) { 1.17 + stringStream ss; 1.18 + t->dump_on(&ss); 1.19 + return ss.as_string(); 1.20 +} 1.21 #endif 1.22 1.23 //------------------------------singleton--------------------------------------