equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2014, 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. |
326 // |
326 // |
327 // This means that given a call site like (List)mh.invoke("foo"), |
327 // This means that given a call site like (List)mh.invoke("foo"), |
328 // the f1 method has signature '(Ljl/Object;Ljl/invoke/MethodType;)Ljl/Object;', |
328 // the f1 method has signature '(Ljl/Object;Ljl/invoke/MethodType;)Ljl/Object;', |
329 // not '(Ljava/lang/String;)Ljava/util/List;'. |
329 // not '(Ljava/lang/String;)Ljava/util/List;'. |
330 // The fact that String and List are involved is encoded in the MethodType in refs[f2]. |
330 // The fact that String and List are involved is encoded in the MethodType in refs[f2]. |
331 // This allows us to create fewer method oops, while keeping type safety. |
331 // This allows us to create fewer Methods, while keeping type safety. |
332 // |
332 // |
333 |
333 |
334 objArrayHandle resolved_references = cpool->resolved_references(); |
334 objArrayHandle resolved_references = cpool->resolved_references(); |
335 // Store appendix, if any. |
335 // Store appendix, if any. |
336 if (has_appendix) { |
336 if (has_appendix) { |