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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/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 2972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 __ JumpIfSmi(v0, if_false); 2983 __ JumpIfSmi(v0, if_false);
2984 __ GetObjectType(v0, a1, a1); 2984 __ GetObjectType(v0, a1, a1);
2985 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2985 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2986 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE), 2986 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE),
2987 if_true, if_false, fall_through); 2987 if_true, if_false, fall_through);
2988 2988
2989 context()->Plug(if_true, if_false); 2989 context()->Plug(if_true, if_false);
2990 } 2990 }
2991 2991
2992 2992
2993 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) {
2994 ZoneList<Expression*>* args = expr->arguments();
2995 DCHECK(args->length() == 1);
2996
2997 VisitForAccumulatorValue(args->at(0));
2998
2999 Label materialize_true, materialize_false;
3000 Label* if_true = NULL;
3001 Label* if_false = NULL;
3002 Label* fall_through = NULL;
3003 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3004 &if_false, &fall_through);
3005
3006 __ JumpIfSmi(v0, if_false);
3007 __ GetObjectType(v0, a1, a1);
3008 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3009 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through);
3010
3011 context()->Plug(if_true, if_false);
3012 }
3013
3014
3015 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 2993 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
3016 ZoneList<Expression*>* args = expr->arguments(); 2994 ZoneList<Expression*>* args = expr->arguments();
3017 DCHECK(args->length() == 1); 2995 DCHECK(args->length() == 1);
3018 2996
3019 VisitForAccumulatorValue(args->at(0)); 2997 VisitForAccumulatorValue(args->at(0));
3020 2998
3021 Label materialize_true, materialize_false; 2999 Label materialize_true, materialize_false;
3022 Label* if_true = NULL; 3000 Label* if_true = NULL;
3023 Label* if_false = NULL; 3001 Label* if_false = NULL;
3024 Label* fall_through = NULL; 3002 Label* fall_through = NULL;
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
4535 reinterpret_cast<uint64_t>( 4513 reinterpret_cast<uint64_t>(
4536 isolate->builtins()->OsrAfterStackCheck()->entry())); 4514 isolate->builtins()->OsrAfterStackCheck()->entry()));
4537 return OSR_AFTER_STACK_CHECK; 4515 return OSR_AFTER_STACK_CHECK;
4538 } 4516 }
4539 4517
4540 4518
4541 } // namespace internal 4519 } // namespace internal
4542 } // namespace v8 4520 } // namespace v8
4543 4521
4544 #endif // V8_TARGET_ARCH_MIPS64 4522 #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