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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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 unified diff | Download patch
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 3013
3014 __ JumpIfSmi(v0, if_false); 3014 __ JumpIfSmi(v0, if_false);
3015 __ GetObjectType(v0, a1, a1); 3015 __ GetObjectType(v0, a1, a1);
3016 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3016 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3017 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); 3017 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through);
3018 3018
3019 context()->Plug(if_true, if_false); 3019 context()->Plug(if_true, if_false);
3020 } 3020 }
3021 3021
3022 3022
3023 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3024 ZoneList<Expression*>* args = expr->arguments();
3025 DCHECK(args->length() == 1);
3026
3027 VisitForAccumulatorValue(args->at(0));
3028
3029 Label materialize_true, materialize_false;
3030 Label* if_true = NULL;
3031 Label* if_false = NULL;
3032 Label* fall_through = NULL;
3033 context()->PrepareTest(&materialize_true, &materialize_false,
3034 &if_true, &if_false, &fall_through);
3035
3036 __ CheckMap(v0, a1, Heap::kHeapNumberMapRootIndex, if_false, DO_SMI_CHECK);
3037 __ lwu(a2, FieldMemOperand(v0, HeapNumber::kExponentOffset));
3038 __ lwu(a1, FieldMemOperand(v0, HeapNumber::kMantissaOffset));
3039 __ li(a4, 0x80000000);
3040 Label not_nan;
3041 __ Branch(&not_nan, ne, a2, Operand(a4));
3042 __ mov(a4, zero_reg);
3043 __ mov(a2, a1);
3044 __ bind(&not_nan);
3045
3046 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3047 Split(eq, a2, Operand(a4), if_true, if_false, fall_through);
3048
3049 context()->Plug(if_true, if_false);
3050 }
3051
3052
3053 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 3023 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
3054 ZoneList<Expression*>* args = expr->arguments(); 3024 ZoneList<Expression*>* args = expr->arguments();
3055 DCHECK(args->length() == 1); 3025 DCHECK(args->length() == 1);
3056 3026
3057 VisitForAccumulatorValue(args->at(0)); 3027 VisitForAccumulatorValue(args->at(0));
3058 3028
3059 Label materialize_true, materialize_false; 3029 Label materialize_true, materialize_false;
3060 Label* if_true = NULL; 3030 Label* if_true = NULL;
3061 Label* if_false = NULL; 3031 Label* if_false = NULL;
3062 Label* fall_through = NULL; 3032 Label* fall_through = NULL;
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
4687 reinterpret_cast<uint64_t>( 4657 reinterpret_cast<uint64_t>(
4688 isolate->builtins()->OsrAfterStackCheck()->entry())); 4658 isolate->builtins()->OsrAfterStackCheck()->entry()));
4689 return OSR_AFTER_STACK_CHECK; 4659 return OSR_AFTER_STACK_CHECK;
4690 } 4660 }
4691 4661
4692 4662
4693 } // namespace internal 4663 } // namespace internal
4694 } // namespace v8 4664 } // namespace v8
4695 4665
4696 #endif // V8_TARGET_ARCH_MIPS64 4666 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698