| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 DCHECK(Assembler::IsBranch(branch_instr)); | 884 DCHECK(Assembler::IsBranch(branch_instr)); |
| 885 | 885 |
| 886 // Invert the logic of the branch | 886 // Invert the logic of the branch |
| 887 if (Assembler::GetCondition(branch_instr) == eq) { | 887 if (Assembler::GetCondition(branch_instr) == eq) { |
| 888 patcher.EmitCondition(ne); | 888 patcher.EmitCondition(ne); |
| 889 } else { | 889 } else { |
| 890 DCHECK(Assembler::GetCondition(branch_instr) == ne); | 890 DCHECK(Assembler::GetCondition(branch_instr) == ne); |
| 891 patcher.EmitCondition(eq); | 891 patcher.EmitCondition(eq); |
| 892 } | 892 } |
| 893 } | 893 } |
| 894 } | 894 } // namespace internal |
| 895 } // namespace v8::internal | 895 } // namespace v8 |
| 896 | 896 |
| 897 #endif // V8_TARGET_ARCH_PPC | 897 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |