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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.cc

Issue 1706743002: [intrinsics] Remove the %_IsSimdValue 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 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 2857
2858 __ JumpIfSmi(rax, if_false); 2858 __ JumpIfSmi(rax, if_false);
2859 __ CmpObjectType(rax, FIRST_JS_RECEIVER_TYPE, rbx); 2859 __ CmpObjectType(rax, FIRST_JS_RECEIVER_TYPE, rbx);
2860 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2860 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2861 Split(above_equal, if_true, if_false, fall_through); 2861 Split(above_equal, if_true, if_false, fall_through);
2862 2862
2863 context()->Plug(if_true, if_false); 2863 context()->Plug(if_true, if_false);
2864 } 2864 }
2865 2865
2866 2866
2867 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) {
2868 ZoneList<Expression*>* args = expr->arguments();
2869 DCHECK(args->length() == 1);
2870
2871 VisitForAccumulatorValue(args->at(0));
2872
2873 Label materialize_true, materialize_false;
2874 Label* if_true = NULL;
2875 Label* if_false = NULL;
2876 Label* fall_through = NULL;
2877 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
2878 &if_false, &fall_through);
2879
2880 __ JumpIfSmi(rax, if_false);
2881 __ CmpObjectType(rax, SIMD128_VALUE_TYPE, rbx);
2882 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2883 Split(equal, if_true, if_false, fall_through);
2884
2885 context()->Plug(if_true, if_false);
2886 }
2887
2888
2889 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 2867 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
2890 ZoneList<Expression*>* args = expr->arguments(); 2868 ZoneList<Expression*>* args = expr->arguments();
2891 DCHECK(args->length() == 1); 2869 DCHECK(args->length() == 1);
2892 2870
2893 VisitForAccumulatorValue(args->at(0)); 2871 VisitForAccumulatorValue(args->at(0));
2894 2872
2895 Label materialize_true, materialize_false; 2873 Label materialize_true, materialize_false;
2896 Label* if_true = NULL; 2874 Label* if_true = NULL;
2897 Label* if_false = NULL; 2875 Label* if_false = NULL;
2898 Label* fall_through = NULL; 2876 Label* fall_through = NULL;
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
4448 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4426 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4449 Assembler::target_address_at(call_target_address, 4427 Assembler::target_address_at(call_target_address,
4450 unoptimized_code)); 4428 unoptimized_code));
4451 return OSR_AFTER_STACK_CHECK; 4429 return OSR_AFTER_STACK_CHECK;
4452 } 4430 }
4453 4431
4454 } // namespace internal 4432 } // namespace internal
4455 } // namespace v8 4433 } // namespace v8
4456 4434
4457 #endif // V8_TARGET_ARCH_X64 4435 #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