< prev index next >

src/share/vm/c1/c1_LIRAssembler.cpp

Print this page
rev 9032 : 8138952: C1: Distinguish between PPC32 and PPC64
Reviewed-by:
   1 /*
   2  * Copyright (c) 2000, 2014, 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  *


 539       break;
 540 
 541     case lir_push:
 542       push(op->in_opr());
 543       break;
 544 
 545     case lir_pop:
 546       pop(op->in_opr());
 547       break;
 548 
 549     case lir_neg:
 550       negate(op->in_opr(), op->result_opr());
 551       break;
 552 
 553     case lir_leal:
 554       leal(op->in_opr(), op->result_opr());
 555       break;
 556 
 557     case lir_null_check:
 558       if (GenerateCompilerNullChecks) {







 559         add_debug_info_for_null_check_here(op->info());
 560 
 561         if (op->in_opr()->is_single_cpu()) {
 562           _masm->null_check(op->in_opr()->as_register());
 563         } else {
 564           Unimplemented();
 565         }
 566       }
 567       break;
 568 
 569     case lir_monaddr:
 570       monitor_address(op->in_opr()->as_constant_ptr()->as_jint(), op->result_opr());
 571       break;
 572 
 573 #ifdef SPARC
 574     case lir_pack64:
 575       pack64(op->in_opr(), op->result_opr());
 576       break;
 577 
 578     case lir_unpack64:


   1 /*
   2  * Copyright (c) 2000, 2015, 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  *


 539       break;
 540 
 541     case lir_push:
 542       push(op->in_opr());
 543       break;
 544 
 545     case lir_pop:
 546       pop(op->in_opr());
 547       break;
 548 
 549     case lir_neg:
 550       negate(op->in_opr(), op->result_opr());
 551       break;
 552 
 553     case lir_leal:
 554       leal(op->in_opr(), op->result_opr());
 555       break;
 556 
 557     case lir_null_check:
 558       if (GenerateCompilerNullChecks) {
 559 #ifdef PPC64
 560         if (!TrapBasedNullChecks) {
 561           assert(op->in_opr()->is_single_cpu(), "expected");
 562           explicit_null_check(op->in_opr()->as_register(), op->info());
 563           break;
 564         }
 565 #endif
 566         add_debug_info_for_null_check_here(op->info());
 567 
 568         if (op->in_opr()->is_single_cpu()) {
 569           _masm->null_check(op->in_opr()->as_register());
 570         } else {
 571           Unimplemented();
 572         }
 573       }
 574       break;
 575 
 576     case lir_monaddr:
 577       monitor_address(op->in_opr()->as_constant_ptr()->as_jint(), op->result_opr());
 578       break;
 579 
 580 #ifdef SPARC
 581     case lir_pack64:
 582       pack64(op->in_opr(), op->result_opr());
 583       break;
 584 
 585     case lir_unpack64:


< prev index next >