Move definition of NegateConditon from assembler*-inl.h files to
assembler*.h files to make clang happy. There was no reason for having the definition in the -inl.h files in the first place. Review URL: http://codereview.chromium.org/2825008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4888 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
50a2e15bbd
commit
6702ace935
@ -45,11 +45,6 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
Condition NegateCondition(Condition cc) {
|
||||
ASSERT(cc != al);
|
||||
return static_cast<Condition>(cc ^ ne);
|
||||
}
|
||||
|
||||
|
||||
void RelocInfo::apply(intptr_t delta) {
|
||||
if (RelocInfo::IsInternalReference(rmode_)) {
|
||||
|
@ -279,7 +279,10 @@ enum Condition {
|
||||
|
||||
|
||||
// Returns the equivalent of !cc.
|
||||
INLINE(Condition NegateCondition(Condition cc));
|
||||
inline Condition NegateCondition(Condition cc) {
|
||||
ASSERT(cc != al);
|
||||
return static_cast<Condition>(cc ^ ne);
|
||||
}
|
||||
|
||||
|
||||
// Corresponds to transposing the operands of a comparison.
|
||||
|
@ -43,10 +43,6 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
Condition NegateCondition(Condition cc) {
|
||||
return static_cast<Condition>(cc ^ 1);
|
||||
}
|
||||
|
||||
|
||||
// The modes possibly affected by apply must be in kApplyMask.
|
||||
void RelocInfo::apply(intptr_t delta) {
|
||||
|
@ -146,7 +146,10 @@ enum Condition {
|
||||
// Negation of the default no_condition (-1) results in a non-default
|
||||
// no_condition value (-2). As long as tests for no_condition check
|
||||
// for condition < 0, this will work as expected.
|
||||
inline Condition NegateCondition(Condition cc);
|
||||
inline Condition NegateCondition(Condition cc) {
|
||||
return static_cast<Condition>(cc ^ 1);
|
||||
}
|
||||
|
||||
|
||||
// Corresponds to transposing the operands of a comparison.
|
||||
inline Condition ReverseCondition(Condition cc) {
|
||||
@ -172,12 +175,14 @@ inline Condition ReverseCondition(Condition cc) {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
enum Hint {
|
||||
no_hint = 0,
|
||||
not_taken = 0x2e,
|
||||
taken = 0x3e
|
||||
};
|
||||
|
||||
|
||||
// The result of negating a hint is as if the corresponding condition
|
||||
// were negated by NegateCondition. That is, no_hint is mapped to
|
||||
// itself and not_taken and taken are mapped to each other.
|
||||
|
@ -35,16 +35,11 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
inline Condition NegateCondition(Condition cc) {
|
||||
return static_cast<Condition>(cc ^ 1);
|
||||
}
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Implementation of Assembler
|
||||
|
||||
|
||||
|
||||
void Assembler::emitl(uint32_t x) {
|
||||
Memory::uint32_at(pc_) = x;
|
||||
pc_ += sizeof(uint32_t);
|
||||
|
@ -215,7 +215,10 @@ enum Condition {
|
||||
// Negation of the default no_condition (-1) results in a non-default
|
||||
// no_condition value (-2). As long as tests for no_condition check
|
||||
// for condition < 0, this will work as expected.
|
||||
inline Condition NegateCondition(Condition cc);
|
||||
inline Condition NegateCondition(Condition cc) {
|
||||
return static_cast<Condition>(cc ^ 1);
|
||||
}
|
||||
|
||||
|
||||
// Corresponds to transposing the operands of a comparison.
|
||||
inline Condition ReverseCondition(Condition cc) {
|
||||
@ -241,6 +244,7 @@ inline Condition ReverseCondition(Condition cc) {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
enum Hint {
|
||||
no_hint = 0,
|
||||
not_taken = 0x2e,
|
||||
|
Loading…
Reference in New Issue
Block a user