Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index b4c832813b2e374df16713acd502b705731c88b8..280bd1a545d76dc7932eac58dd857b4b18548cc4 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -363,7 +363,7 @@ class MacroAssembler: public Assembler { |
void JumpIfNotInNewSpace(Register object, |
Register scratch, |
Label* branch) { |
- InNewSpace(object, scratch, ne, branch); |
+ InNewSpace(object, scratch, eq, branch); |
} |
// Check if object is in new space. Jumps if the object is in new space. |
@@ -371,7 +371,7 @@ class MacroAssembler: public Assembler { |
void JumpIfInNewSpace(Register object, |
Register scratch, |
Label* branch) { |
- InNewSpace(object, scratch, eq, branch); |
+ InNewSpace(object, scratch, ne, branch); |
} |
// Check if an object has a given incremental marking color. |
@@ -1691,9 +1691,8 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
Register scratch2); |
// Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
- void InNewSpace(Register object, |
- Register scratch, |
- Condition cond, // eq for new space, ne otherwise. |
+ void InNewSpace(Register object, Register scratch, |
+ Condition cond, // ne for new space, eq otherwise. |
Label* branch); |
// Helper for finding the mark bits for an address. Afterwards, the |