Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(986)

Unified Diff: src/ppc/macro-assembler-ppc.cc

Issue 1680783002: [intrinsics] Kill the %_IsMinusZero intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/macro-assembler-ppc.cc
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
index 3424e9181f1b490659a65996144f4e788abaed4d..fb0f4858dfee54b284a5f8459a65d59af1021f9b 100644
--- a/src/ppc/macro-assembler-ppc.cc
+++ b/src/ppc/macro-assembler-ppc.cc
@@ -2208,25 +2208,6 @@ void MacroAssembler::TestDoubleIsMinusZero(DoubleRegister input,
#endif
}
-void MacroAssembler::TestHeapNumberIsMinusZero(Register input,
- Register scratch1,
- Register scratch2) {
-#if V8_TARGET_ARCH_PPC64
- LoadP(scratch1, FieldMemOperand(input, HeapNumber::kValueOffset));
- rotldi(scratch1, scratch1, 1);
- cmpi(scratch1, Operand(1));
-#else
- lwz(scratch1, FieldMemOperand(input, HeapNumber::kExponentOffset));
- lwz(scratch2, FieldMemOperand(input, HeapNumber::kMantissaOffset));
- Label done;
- cmpi(scratch2, Operand::Zero());
- bne(&done);
- lis(scratch2, Operand(SIGN_EXT_IMM16(0x8000)));
- cmp(scratch1, scratch2);
- bind(&done);
-#endif
-}
-
void MacroAssembler::TestDoubleSign(DoubleRegister input, Register scratch) {
#if V8_TARGET_ARCH_PPC64
MovDoubleToInt64(scratch, input);
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698