Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_LIR.cpp @ 7623:203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
Summary: Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro.
Reviewed-by: dholmes, coleenp, mikael, kvn
author | hseigel |
---|---|
date | Thu, 17 Jan 2013 10:25:16 -0500 |
parents | 7eca5de9e0b6 |
children | 84a926fe53d0 |
comparison
equal
deleted
inserted
replaced
7620:e94ed1591b42 | 7623:203f64878aab |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2013, 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. |
1561 // LIR_Address | 1561 // LIR_Address |
1562 void LIR_Const::print_value_on(outputStream* out) const { | 1562 void LIR_Const::print_value_on(outputStream* out) const { |
1563 switch (type()) { | 1563 switch (type()) { |
1564 case T_ADDRESS:out->print("address:%d",as_jint()); break; | 1564 case T_ADDRESS:out->print("address:%d",as_jint()); break; |
1565 case T_INT: out->print("int:%d", as_jint()); break; | 1565 case T_INT: out->print("int:%d", as_jint()); break; |
1566 case T_LONG: out->print("lng:%lld", as_jlong()); break; | 1566 case T_LONG: out->print("lng:" JLONG_FORMAT, as_jlong()); break; |
1567 case T_FLOAT: out->print("flt:%f", as_jfloat()); break; | 1567 case T_FLOAT: out->print("flt:%f", as_jfloat()); break; |
1568 case T_DOUBLE: out->print("dbl:%f", as_jdouble()); break; | 1568 case T_DOUBLE: out->print("dbl:%f", as_jdouble()); break; |
1569 case T_OBJECT: out->print("obj:0x%x", as_jobject()); break; | 1569 case T_OBJECT: out->print("obj:0x%x", as_jobject()); break; |
1570 case T_METADATA: out->print("metadata:0x%x", as_metadata());break; | 1570 case T_METADATA: out->print("metadata:0x%x", as_metadata());break; |
1571 default: out->print("%3d:0x%x",type(), as_jdouble()); break; | 1571 default: out->print("%3d:0x%x",type(), as_jdouble()); break; |