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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2882 2882
2883 __ JumpIfSmi(rax, if_false); 2883 __ JumpIfSmi(rax, if_false);
2884 __ CmpObjectType(rax, SIMD128_VALUE_TYPE, rbx); 2884 __ CmpObjectType(rax, SIMD128_VALUE_TYPE, rbx);
2885 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2885 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2886 Split(equal, if_true, if_false, fall_through); 2886 Split(equal, if_true, if_false, fall_through);
2887 2887
2888 context()->Plug(if_true, if_false); 2888 context()->Plug(if_true, if_false);
2889 } 2889 }
2890 2890
2891 2891
2892 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
2893 ZoneList<Expression*>* args = expr->arguments();
2894 DCHECK(args->length() == 1);
2895
2896 VisitForAccumulatorValue(args->at(0));
2897
2898 Label materialize_true, materialize_false;
2899 Label* if_true = NULL;
2900 Label* if_false = NULL;
2901 Label* fall_through = NULL;
2902 context()->PrepareTest(&materialize_true, &materialize_false,
2903 &if_true, &if_false, &fall_through);
2904
2905 Handle<Map> map = masm()->isolate()->factory()->heap_number_map();
2906 __ CheckMap(rax, map, if_false, DO_SMI_CHECK);
2907 __ cmpl(FieldOperand(rax, HeapNumber::kExponentOffset),
2908 Immediate(0x1));
2909 __ j(no_overflow, if_false);
2910 __ cmpl(FieldOperand(rax, HeapNumber::kMantissaOffset),
2911 Immediate(0x00000000));
2912 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2913 Split(equal, if_true, if_false, fall_through);
2914
2915 context()->Plug(if_true, if_false);
2916 }
2917
2918
2919 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 2892 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
2920 ZoneList<Expression*>* args = expr->arguments(); 2893 ZoneList<Expression*>* args = expr->arguments();
2921 DCHECK(args->length() == 1); 2894 DCHECK(args->length() == 1);
2922 2895
2923 VisitForAccumulatorValue(args->at(0)); 2896 VisitForAccumulatorValue(args->at(0));
2924 2897
2925 Label materialize_true, materialize_false; 2898 Label materialize_true, materialize_false;
2926 Label* if_true = NULL; 2899 Label* if_true = NULL;
2927 Label* if_false = NULL; 2900 Label* if_false = NULL;
2928 Label* fall_through = NULL; 2901 Label* fall_through = NULL;
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
4592 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4565 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4593 Assembler::target_address_at(call_target_address, 4566 Assembler::target_address_at(call_target_address,
4594 unoptimized_code)); 4567 unoptimized_code));
4595 return OSR_AFTER_STACK_CHECK; 4568 return OSR_AFTER_STACK_CHECK;
4596 } 4569 }
4597 4570
4598 } // namespace internal 4571 } // namespace internal
4599 } // namespace v8 4572 } // namespace v8
4600 4573
4601 #endif // V8_TARGET_ARCH_X64 4574 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698