< prev index next >

src/hotspot/share/c1/c1_InstructionPrinter.cpp

Print this page
   1 /*
   2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 523   print_klass(x->klass());
 524 }
 525 
 526 void InstructionPrinter::do_NewObjectArray(NewObjectArray* x) {
 527   output()->print("new object array [");
 528   print_value(x->length());
 529   output()->print("] ");
 530   print_klass(x->klass());
 531 }
 532 
 533 
 534 void InstructionPrinter::do_NewMultiArray(NewMultiArray* x) {
 535   output()->print("new multi array [");
 536   Values* dims = x->dims();
 537   for (int i = 0; i < dims->length(); i++) {
 538     if (i > 0) output()->print(", ");
 539     print_value(dims->at(i));
 540   }
 541   output()->print("] ");
 542   print_klass(x->klass());








 543 }
 544 
 545 
 546 void InstructionPrinter::do_MonitorEnter(MonitorEnter* x) {
 547   output()->print("enter ");
 548   print_monitor(x);
 549 }
 550 
 551 
 552 void InstructionPrinter::do_MonitorExit(MonitorExit* x) {
 553   output()->print("exit ");
 554   print_monitor(x);
 555 }
 556 
 557 
 558 void InstructionPrinter::do_Intrinsic(Intrinsic* x) {
 559   const char* name = vmIntrinsics::name_at(x->id());
 560   if (name[0] == '_')  name++;  // strip leading bug from _hashCode, etc.
 561   const char* kname = vmSymbols::name_for(vmIntrinsics::class_for(x->id()));
 562   if (strchr(name, '_') == NULL) {


   1 /*
   2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 523   print_klass(x->klass());
 524 }
 525 
 526 void InstructionPrinter::do_NewObjectArray(NewObjectArray* x) {
 527   output()->print("new object array [");
 528   print_value(x->length());
 529   output()->print("] ");
 530   print_klass(x->klass());
 531 }
 532 
 533 
 534 void InstructionPrinter::do_NewMultiArray(NewMultiArray* x) {
 535   output()->print("new multi array [");
 536   Values* dims = x->dims();
 537   for (int i = 0; i < dims->length(); i++) {
 538     if (i > 0) output()->print(", ");
 539     print_value(dims->at(i));
 540   }
 541   output()->print("] ");
 542   print_klass(x->klass());
 543 }
 544 
 545 void InstructionPrinter::do_WithField(WithField* x) {
 546   output()->print("withfield");
 547 }
 548 
 549 void InstructionPrinter::do_DefaultValue(DefaultValue* x) {
 550   output()->print("defaultvalue");
 551 }
 552 
 553 
 554 void InstructionPrinter::do_MonitorEnter(MonitorEnter* x) {
 555   output()->print("enter ");
 556   print_monitor(x);
 557 }
 558 
 559 
 560 void InstructionPrinter::do_MonitorExit(MonitorExit* x) {
 561   output()->print("exit ");
 562   print_monitor(x);
 563 }
 564 
 565 
 566 void InstructionPrinter::do_Intrinsic(Intrinsic* x) {
 567   const char* name = vmIntrinsics::name_at(x->id());
 568   if (name[0] == '_')  name++;  // strip leading bug from _hashCode, etc.
 569   const char* kname = vmSymbols::name_for(vmIntrinsics::class_for(x->id()));
 570   if (strchr(name, '_') == NULL) {


< prev index next >