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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2797
2798 __ JumpIfSmi(x0, if_false); 2798 __ JumpIfSmi(x0, if_false);
2799 __ CompareObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE); 2799 __ CompareObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE);
2800 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2800 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2801 Split(ge, if_true, if_false, fall_through); 2801 Split(ge, if_true, if_false, fall_through);
2802 2802
2803 context()->Plug(if_true, if_false); 2803 context()->Plug(if_true, if_false);
2804 } 2804 }
2805 2805
2806 2806
2807 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) {
2808 ZoneList<Expression*>* args = expr->arguments();
2809 DCHECK(args->length() == 1);
2810
2811 VisitForAccumulatorValue(args->at(0));
2812
2813 Label materialize_true, materialize_false;
2814 Label* if_true = NULL;
2815 Label* if_false = NULL;
2816 Label* fall_through = NULL;
2817 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
2818 &if_false, &fall_through);
2819
2820 __ JumpIfSmi(x0, if_false);
2821 __ CompareObjectType(x0, x10, x11, SIMD128_VALUE_TYPE);
2822 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2823 Split(eq, if_true, if_false, fall_through);
2824
2825 context()->Plug(if_true, if_false);
2826 }
2827
2828
2829 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 2807 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
2830 ZoneList<Expression*>* args = expr->arguments(); 2808 ZoneList<Expression*>* args = expr->arguments();
2831 DCHECK(args->length() == 1); 2809 DCHECK(args->length() == 1);
2832 2810
2833 VisitForAccumulatorValue(args->at(0)); 2811 VisitForAccumulatorValue(args->at(0));
2834 2812
2835 Label materialize_true, materialize_false; 2813 Label materialize_true, materialize_false;
2836 Label* if_true = NULL; 2814 Label* if_true = NULL;
2837 Label* if_false = NULL; 2815 Label* if_false = NULL;
2838 Label* fall_through = NULL; 2816 Label* fall_through = NULL;
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
4561 } 4539 }
4562 4540
4563 return INTERRUPT; 4541 return INTERRUPT;
4564 } 4542 }
4565 4543
4566 4544
4567 } // namespace internal 4545 } // namespace internal
4568 } // namespace v8 4546 } // namespace v8
4569 4547
4570 #endif // V8_TARGET_ARCH_ARM64 4548 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698