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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/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 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after
3006 3006
3007 __ JumpIfSmi(rax, if_false); 3007 __ JumpIfSmi(rax, if_false);
3008 __ CmpObjectType(rax, SIMD128_VALUE_TYPE, rbx); 3008 __ CmpObjectType(rax, SIMD128_VALUE_TYPE, rbx);
3009 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3009 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3010 Split(equal, if_true, if_false, fall_through); 3010 Split(equal, if_true, if_false, fall_through);
3011 3011
3012 context()->Plug(if_true, if_false); 3012 context()->Plug(if_true, if_false);
3013 } 3013 }
3014 3014
3015 3015
3016 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3017 ZoneList<Expression*>* args = expr->arguments();
3018 DCHECK(args->length() == 1);
3019
3020 VisitForAccumulatorValue(args->at(0));
3021
3022 Label materialize_true, materialize_false;
3023 Label* if_true = NULL;
3024 Label* if_false = NULL;
3025 Label* fall_through = NULL;
3026 context()->PrepareTest(&materialize_true, &materialize_false,
3027 &if_true, &if_false, &fall_through);
3028
3029 __ JumpIfSmi(rax, if_false);
3030 __ CmpObjectType(rax, FIRST_FUNCTION_TYPE, rbx);
3031 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3032 Split(above_equal, if_true, if_false, fall_through);
3033
3034 context()->Plug(if_true, if_false);
3035 }
3036
3037
3038 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { 3016 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) {
3039 ZoneList<Expression*>* args = expr->arguments(); 3017 ZoneList<Expression*>* args = expr->arguments();
3040 DCHECK(args->length() == 1); 3018 DCHECK(args->length() == 1);
3041 3019
3042 VisitForAccumulatorValue(args->at(0)); 3020 VisitForAccumulatorValue(args->at(0));
3043 3021
3044 Label materialize_true, materialize_false; 3022 Label materialize_true, materialize_false;
3045 Label* if_true = NULL; 3023 Label* if_true = NULL;
3046 Label* if_false = NULL; 3024 Label* if_false = NULL;
3047 Label* fall_through = NULL; 3025 Label* fall_through = NULL;
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
4735 Assembler::target_address_at(call_target_address, 4713 Assembler::target_address_at(call_target_address,
4736 unoptimized_code)); 4714 unoptimized_code));
4737 return OSR_AFTER_STACK_CHECK; 4715 return OSR_AFTER_STACK_CHECK;
4738 } 4716 }
4739 4717
4740 4718
4741 } // namespace internal 4719 } // namespace internal
4742 } // namespace v8 4720 } // namespace v8
4743 4721
4744 #endif // V8_TARGET_ARCH_X64 4722 #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