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

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

Issue 1658123002: [intrinsics] Remove %_IsFunction inline 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 3132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 3143
3144 __ JumpIfSmi(v0, if_false); 3144 __ JumpIfSmi(v0, if_false);
3145 __ GetObjectType(v0, a1, a1); 3145 __ GetObjectType(v0, a1, a1);
3146 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3146 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3147 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); 3147 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through);
3148 3148
3149 context()->Plug(if_true, if_false); 3149 context()->Plug(if_true, if_false);
3150 } 3150 }
3151 3151
3152 3152
3153 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3154 ZoneList<Expression*>* args = expr->arguments();
3155 DCHECK(args->length() == 1);
3156
3157 VisitForAccumulatorValue(args->at(0));
3158
3159 Label materialize_true, materialize_false;
3160 Label* if_true = NULL;
3161 Label* if_false = NULL;
3162 Label* fall_through = NULL;
3163 context()->PrepareTest(&materialize_true, &materialize_false,
3164 &if_true, &if_false, &fall_through);
3165
3166 __ JumpIfSmi(v0, if_false);
3167 __ GetObjectType(v0, a1, a2);
3168 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3169 __ Branch(if_true, hs, a2, Operand(FIRST_FUNCTION_TYPE));
3170 __ Branch(if_false);
3171
3172 context()->Plug(if_true, if_false);
3173 }
3174
3175
3176 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3153 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3177 ZoneList<Expression*>* args = expr->arguments(); 3154 ZoneList<Expression*>* args = expr->arguments();
3178 DCHECK(args->length() == 1); 3155 DCHECK(args->length() == 1);
3179 3156
3180 VisitForAccumulatorValue(args->at(0)); 3157 VisitForAccumulatorValue(args->at(0));
3181 3158
3182 Label materialize_true, materialize_false; 3159 Label materialize_true, materialize_false;
3183 Label* if_true = NULL; 3160 Label* if_true = NULL;
3184 Label* if_false = NULL; 3161 Label* if_false = NULL;
3185 Label* fall_through = NULL; 3162 Label* fall_through = NULL;
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
4834 reinterpret_cast<uint64_t>( 4811 reinterpret_cast<uint64_t>(
4835 isolate->builtins()->OsrAfterStackCheck()->entry())); 4812 isolate->builtins()->OsrAfterStackCheck()->entry()));
4836 return OSR_AFTER_STACK_CHECK; 4813 return OSR_AFTER_STACK_CHECK;
4837 } 4814 }
4838 4815
4839 4816
4840 } // namespace internal 4817 } // namespace internal
4841 } // namespace v8 4818 } // namespace v8
4842 4819
4843 #endif // V8_TARGET_ARCH_MIPS64 4820 #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