comparison src/cpu/x86/vm/assembler_x86.hpp @ 1513:df736661d0c8

Merge
author jrose
date Tue, 11 May 2010 15:19:19 -0700
parents c640000b7cc1
children c18cbe5936b8 61b2245abf36
comparison
equal deleted inserted replaced
1496:e8e83be27dd7 1513:df736661d0c8
1 /* 1 /*
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-2010 Sun Microsystems, Inc. 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.
1509 1509
1510 // Support for sign-extension (hi:lo = extend_sign(lo)) 1510 // Support for sign-extension (hi:lo = extend_sign(lo))
1511 void extend_sign(Register hi, Register lo); 1511 void extend_sign(Register hi, Register lo);
1512 1512
1513 // Loading values by size and signed-ness 1513 // Loading values by size and signed-ness
1514 void load_sized_value(Register dst, Address src, int size_in_bytes, bool is_signed); 1514 void load_sized_value(Register dst, Address src, size_t size_in_bytes, bool is_signed);
1515 1515
1516 // Support for inc/dec with optimal instruction selection depending on value 1516 // Support for inc/dec with optimal instruction selection depending on value
1517 1517
1518 void increment(Register reg, int value = 1) { LP64_ONLY(incrementq(reg, value)) NOT_LP64(incrementl(reg, value)) ; } 1518 void increment(Register reg, int value = 1) { LP64_ONLY(incrementq(reg, value)) NOT_LP64(incrementl(reg, value)) ; }
1519 void decrement(Register reg, int value = 1) { LP64_ONLY(decrementq(reg, value)) NOT_LP64(decrementl(reg, value)) ; } 1519 void decrement(Register reg, int value = 1) { LP64_ONLY(decrementq(reg, value)) NOT_LP64(decrementl(reg, value)) ; }