hotspot/src/share/vm/ci/ciMethodData.cpp
changeset 24424 2658d7834c6e
parent 23201 6920163f479e
child 24476 912595db2e75
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 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.
   555           ciKlass* k = vdata->receiver(i);
   555           ciKlass* k = vdata->receiver(i);
   556           if (k != NULL) {
   556           if (k != NULL) {
   557             if (round == 0) {
   557             if (round == 0) {
   558               count++;
   558               count++;
   559             } else {
   559             } else {
   560               out->print(" %d %s", dp_to_di(vdata->dp() + in_bytes(vdata->receiver_offset(i))) / sizeof(intptr_t), k->name()->as_quoted_ascii());
   560               out->print(" %d %s", (int)(dp_to_di(vdata->dp() + in_bytes(vdata->receiver_offset(i))) / sizeof(intptr_t)), k->name()->as_quoted_ascii());
   561             }
   561             }
   562           }
   562           }
   563         }
   563         }
   564       } else if (pdata->is_VirtualCallData()) {
   564       } else if (pdata->is_VirtualCallData()) {
   565         ciVirtualCallData* vdata = (ciVirtualCallData*)pdata;
   565         ciVirtualCallData* vdata = (ciVirtualCallData*)pdata;
   567           ciKlass* k = vdata->receiver(i);
   567           ciKlass* k = vdata->receiver(i);
   568           if (k != NULL) {
   568           if (k != NULL) {
   569             if (round == 0) {
   569             if (round == 0) {
   570               count++;
   570               count++;
   571             } else {
   571             } else {
   572               out->print(" %d %s", dp_to_di(vdata->dp() + in_bytes(vdata->receiver_offset(i))) / sizeof(intptr_t), k->name()->as_quoted_ascii());
   572               out->print(" %d %s", (int)(dp_to_di(vdata->dp() + in_bytes(vdata->receiver_offset(i))) / sizeof(intptr_t)), k->name()->as_quoted_ascii());
   573             }
   573             }
   574           }
   574           }
   575         }
   575         }
   576       }
   576       }
   577     }
   577     }