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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 3133 matching lines...) Expand 10 before | Expand all | Expand 10 after
3144 3144
3145 __ JumpIfSmi(r0, if_false); 3145 __ JumpIfSmi(r0, if_false);
3146 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); 3146 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE);
3147 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3147 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3148 Split(eq, if_true, if_false, fall_through); 3148 Split(eq, if_true, if_false, fall_through);
3149 3149
3150 context()->Plug(if_true, if_false); 3150 context()->Plug(if_true, if_false);
3151 } 3151 }
3152 3152
3153 3153
3154 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3155 ZoneList<Expression*>* args = expr->arguments();
3156 DCHECK(args->length() == 1);
3157
3158 VisitForAccumulatorValue(args->at(0));
3159
3160 Label materialize_true, materialize_false;
3161 Label* if_true = NULL;
3162 Label* if_false = NULL;
3163 Label* fall_through = NULL;
3164 context()->PrepareTest(&materialize_true, &materialize_false,
3165 &if_true, &if_false, &fall_through);
3166
3167 __ JumpIfSmi(r0, if_false);
3168 __ CompareObjectType(r0, r1, r2, FIRST_FUNCTION_TYPE);
3169 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3170 Split(hs, if_true, if_false, fall_through);
3171
3172 context()->Plug(if_true, if_false);
3173 }
3174
3175
3176 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3154 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3177 ZoneList<Expression*>* args = expr->arguments(); 3155 ZoneList<Expression*>* args = expr->arguments();
3178 DCHECK(args->length() == 1); 3156 DCHECK(args->length() == 1);
3179 3157
3180 VisitForAccumulatorValue(args->at(0)); 3158 VisitForAccumulatorValue(args->at(0));
3181 3159
3182 Label materialize_true, materialize_false; 3160 Label materialize_true, materialize_false;
3183 Label* if_true = NULL; 3161 Label* if_true = NULL;
3184 Label* if_false = NULL; 3162 Label* if_false = NULL;
3185 Label* fall_through = NULL; 3163 Label* fall_through = NULL;
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
4868 DCHECK(interrupt_address == 4846 DCHECK(interrupt_address ==
4869 isolate->builtins()->OsrAfterStackCheck()->entry()); 4847 isolate->builtins()->OsrAfterStackCheck()->entry());
4870 return OSR_AFTER_STACK_CHECK; 4848 return OSR_AFTER_STACK_CHECK;
4871 } 4849 }
4872 4850
4873 4851
4874 } // namespace internal 4852 } // namespace internal
4875 } // namespace v8 4853 } // namespace v8
4876 4854
4877 #endif // V8_TARGET_ARCH_ARM 4855 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698