src/share/vm/c1/c1_InstructionPrinter.cpp

changeset 3592
701a83c86f28
parent 2894
d4c1fbc3de95
child 3969
1d7922586cf6
     1.1 --- a/src/share/vm/c1/c1_InstructionPrinter.cpp	Wed Feb 22 14:00:34 2012 -0500
     1.2 +++ b/src/share/vm/c1/c1_InstructionPrinter.cpp	Tue Feb 21 13:14:55 2012 -0500
     1.3 @@ -855,4 +855,20 @@
     1.4    output()->put(')');
     1.5  }
     1.6  
     1.7 +void InstructionPrinter::do_MemBar(MemBar* x) {
     1.8 +  if (os::is_MP()) {
     1.9 +    LIR_Code code = x->code();
    1.10 +    switch (code) {
    1.11 +      case lir_membar_acquire   : output()->print("membar_acquire"); break;
    1.12 +      case lir_membar_release   : output()->print("membar_release"); break;
    1.13 +      case lir_membar           : output()->print("membar"); break;
    1.14 +      case lir_membar_loadload  : output()->print("membar_loadload"); break;
    1.15 +      case lir_membar_storestore: output()->print("membar_storestore"); break;
    1.16 +      case lir_membar_loadstore : output()->print("membar_loadstore"); break;
    1.17 +      case lir_membar_storeload : output()->print("membar_storeload"); break;
    1.18 +      default                   : ShouldNotReachHere(); break;
    1.19 +    }
    1.20 +  }
    1.21 +}
    1.22 +
    1.23  #endif // PRODUCT

mercurial