Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 23393:1d4ce2d19e52
clean up and minimize JVMCI (JDK-8156835)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 May 2016 20:57:31 +0200 |
parents | b3a816d3b844 |
children | 3ef45d0a6d77 |
comparison
equal
deleted
inserted
replaced
23392:b3a816d3b844 | 23393:1d4ce2d19e52 |
---|---|
52 JVMCIRuntime::CompLevelAdjustment JVMCIRuntime::_comp_level_adjustment = JVMCIRuntime::none; | 52 JVMCIRuntime::CompLevelAdjustment JVMCIRuntime::_comp_level_adjustment = JVMCIRuntime::none; |
53 bool JVMCIRuntime::_shutdown_called = false; | 53 bool JVMCIRuntime::_shutdown_called = false; |
54 | 54 |
55 BasicType JVMCIRuntime::kindToBasicType(jchar ch, TRAPS) { | 55 BasicType JVMCIRuntime::kindToBasicType(jchar ch, TRAPS) { |
56 switch(ch) { | 56 switch(ch) { |
57 case 'z': return T_BOOLEAN; | 57 case 'Z': return T_BOOLEAN; |
58 case 'b': return T_BYTE; | 58 case 'B': return T_BYTE; |
59 case 's': return T_SHORT; | 59 case 'S': return T_SHORT; |
60 case 'c': return T_CHAR; | 60 case 'C': return T_CHAR; |
61 case 'i': return T_INT; | 61 case 'I': return T_INT; |
62 case 'f': return T_FLOAT; | 62 case 'F': return T_FLOAT; |
63 case 'j': return T_LONG; | 63 case 'J': return T_LONG; |
64 case 'd': return T_DOUBLE; | 64 case 'D': return T_DOUBLE; |
65 case 'a': return T_OBJECT; | 65 case 'A': return T_OBJECT; |
66 case '-': return T_ILLEGAL; | 66 case '-': return T_ILLEGAL; |
67 default: | 67 default: |
68 JVMCI_ERROR_(T_ILLEGAL, "unexpected Kind: %c", ch); | 68 JVMCI_ERROR_(T_ILLEGAL, "unexpected Kind: %c", ch); |
69 } | 69 } |
70 } | 70 } |
556 jdouble d; | 556 jdouble d; |
557 jfloat f; | 557 jfloat f; |
558 } uu; | 558 } uu; |
559 uu.l = value; | 559 uu.l = value; |
560 switch (typeChar) { | 560 switch (typeChar) { |
561 case 'z': tty->print(value == 0 ? "false" : "true"); break; | 561 case 'Z': tty->print(value == 0 ? "false" : "true"); break; |
562 case 'b': tty->print("%d", (jbyte) value); break; | 562 case 'B': tty->print("%d", (jbyte) value); break; |
563 case 'c': tty->print("%c", (jchar) value); break; | 563 case 'C': tty->print("%c", (jchar) value); break; |
564 case 's': tty->print("%d", (jshort) value); break; | 564 case 'S': tty->print("%d", (jshort) value); break; |
565 case 'i': tty->print("%d", (jint) value); break; | 565 case 'I': tty->print("%d", (jint) value); break; |
566 case 'f': tty->print("%f", uu.f); break; | 566 case 'F': tty->print("%f", uu.f); break; |
567 case 'j': tty->print(JLONG_FORMAT, value); break; | 567 case 'J': tty->print(JLONG_FORMAT, value); break; |
568 case 'd': tty->print("%lf", uu.d); break; | 568 case 'D': tty->print("%lf", uu.d); break; |
569 default: assert(false, "unknown typeChar"); break; | 569 default: assert(false, "unknown typeChar"); break; |
570 } | 570 } |
571 if (newline) { | 571 if (newline) { |
572 tty->cr(); | 572 tty->cr(); |
573 } | 573 } |