comparison src/share/vm/c1/c1_LinearScan.cpp @ 2491:0654ee04b214

Merge with OpenJDK.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 22 Apr 2011 15:30:53 +0200
parents 1d1603768966
children 7588156f5cf9
comparison
equal deleted inserted replaced
2490:29246b1d2d3c 2491:0654ee04b214
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2011, 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.
2701 // must be present 2701 // must be present
2702 assert(use_fpu_stack_allocation(), "should not have float stack values without fpu stack allocation (all floats must be SSE2)"); 2702 assert(use_fpu_stack_allocation(), "should not have float stack values without fpu stack allocation (all floats must be SSE2)");
2703 assert(_fpu_stack_allocator != NULL, "must be present"); 2703 assert(_fpu_stack_allocator != NULL, "must be present");
2704 opr = _fpu_stack_allocator->to_fpu_stack(opr); 2704 opr = _fpu_stack_allocator->to_fpu_stack(opr);
2705 2705
2706 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi(), "assumed in calculation (only fpu_regnrHi is used)"); 2706 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi(), "assumed in calculation (only fpu_regnrLo is used)");
2707 #endif 2707 #endif
2708 #ifdef SPARC 2708 #ifdef SPARC
2709 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi() + 1, "assumed in calculation (only fpu_regnrHi is used)"); 2709 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi() + 1, "assumed in calculation (only fpu_regnrHi is used)");
2710 #endif 2710 #endif
2711 #ifdef ARM 2711 #ifdef ARM
2713 #endif 2713 #endif
2714 #ifdef PPC 2714 #ifdef PPC
2715 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi(), "assumed in calculation (only fpu_regnrHi is used)"); 2715 assert(opr->fpu_regnrLo() == opr->fpu_regnrHi(), "assumed in calculation (only fpu_regnrHi is used)");
2716 #endif 2716 #endif
2717 2717
2718 #ifdef VM_LITTLE_ENDIAN
2719 VMReg rname_first = frame_map()->fpu_regname(opr->fpu_regnrLo());
2720 #else
2718 VMReg rname_first = frame_map()->fpu_regname(opr->fpu_regnrHi()); 2721 VMReg rname_first = frame_map()->fpu_regname(opr->fpu_regnrHi());
2722 #endif
2723
2719 #ifdef _LP64 2724 #ifdef _LP64
2720 first = new LocationValue(Location::new_reg_loc(Location::dbl, rname_first)); 2725 first = new LocationValue(Location::new_reg_loc(Location::dbl, rname_first));
2721 second = &_int_0_scope_value; 2726 second = &_int_0_scope_value;
2722 #else 2727 #else
2723 first = new LocationValue(Location::new_reg_loc(Location::normal, rname_first)); 2728 first = new LocationValue(Location::new_reg_loc(Location::normal, rname_first));