Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/x86_32.ad @ 4121:db2e64ca2d5a
7090968: Allow adlc register class to depend on runtime conditions
Summary: allow reg_class definition as a function.
Reviewed-by: kvn, never
author | roland |
---|---|
date | Tue, 22 Nov 2011 09:45:57 +0100 |
parents | 6729bbc1fcd6 |
children | 127b3692c168 |
comparison
equal
deleted
inserted
replaced
4120:f03a3c8bd5e5 | 4121:db2e64ca2d5a |
---|---|
1522 (divisor == (int)divisor && divisor != min_jint); | 1522 (divisor == (int)divisor && divisor != min_jint); |
1523 } | 1523 } |
1524 | 1524 |
1525 // Register for DIVI projection of divmodI | 1525 // Register for DIVI projection of divmodI |
1526 RegMask Matcher::divI_proj_mask() { | 1526 RegMask Matcher::divI_proj_mask() { |
1527 return EAX_REG_mask; | 1527 return EAX_REG_mask(); |
1528 } | 1528 } |
1529 | 1529 |
1530 // Register for MODI projection of divmodI | 1530 // Register for MODI projection of divmodI |
1531 RegMask Matcher::modI_proj_mask() { | 1531 RegMask Matcher::modI_proj_mask() { |
1532 return EDX_REG_mask; | 1532 return EDX_REG_mask(); |
1533 } | 1533 } |
1534 | 1534 |
1535 // Register for DIVL projection of divmodL | 1535 // Register for DIVL projection of divmodL |
1536 RegMask Matcher::divL_proj_mask() { | 1536 RegMask Matcher::divL_proj_mask() { |
1537 ShouldNotReachHere(); | 1537 ShouldNotReachHere(); |
1543 ShouldNotReachHere(); | 1543 ShouldNotReachHere(); |
1544 return RegMask(); | 1544 return RegMask(); |
1545 } | 1545 } |
1546 | 1546 |
1547 const RegMask Matcher::method_handle_invoke_SP_save_mask() { | 1547 const RegMask Matcher::method_handle_invoke_SP_save_mask() { |
1548 return EBP_REG_mask; | 1548 return EBP_REG_mask(); |
1549 } | 1549 } |
1550 | 1550 |
1551 // Returns true if the high 32 bits of the value is known to be zero. | 1551 // Returns true if the high 32 bits of the value is known to be zero. |
1552 bool is_operand_hi32_zero(Node* n) { | 1552 bool is_operand_hi32_zero(Node* n) { |
1553 int opc = n->Opcode(); | 1553 int opc = n->Opcode(); |