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

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

Issue 1692193002: [runtime] Remove obsolete %ObjectEquals runtime entry. (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 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2927 2927
2928 __ JumpIfSmi(x0, if_false); 2928 __ JumpIfSmi(x0, if_false);
2929 __ CompareObjectType(x0, x10, x11, JS_PROXY_TYPE); 2929 __ CompareObjectType(x0, x10, x11, JS_PROXY_TYPE);
2930 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2930 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2931 Split(eq, if_true, if_false, fall_through); 2931 Split(eq, if_true, if_false, fall_through);
2932 2932
2933 context()->Plug(if_true, if_false); 2933 context()->Plug(if_true, if_false);
2934 } 2934 }
2935 2935
2936 2936
2937 void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) {
2938 ZoneList<Expression*>* args = expr->arguments();
2939 DCHECK(args->length() == 2);
2940
2941 // Load the two objects into registers and perform the comparison.
2942 VisitForStackValue(args->at(0));
2943 VisitForAccumulatorValue(args->at(1));
2944
2945 Label materialize_true, materialize_false;
2946 Label* if_true = NULL;
2947 Label* if_false = NULL;
2948 Label* fall_through = NULL;
2949 context()->PrepareTest(&materialize_true, &materialize_false,
2950 &if_true, &if_false, &fall_through);
2951
2952 __ Pop(x1);
2953 __ Cmp(x0, x1);
2954 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2955 Split(eq, if_true, if_false, fall_through);
2956
2957 context()->Plug(if_true, if_false);
2958 }
2959
2960
2961 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { 2937 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
2962 ASM_LOCATION("FullCodeGenerator::EmitClassOf"); 2938 ASM_LOCATION("FullCodeGenerator::EmitClassOf");
2963 ZoneList<Expression*>* args = expr->arguments(); 2939 ZoneList<Expression*>* args = expr->arguments();
2964 DCHECK(args->length() == 1); 2940 DCHECK(args->length() == 1);
2965 Label done, null, function, non_function_constructor; 2941 Label done, null, function, non_function_constructor;
2966 2942
2967 VisitForAccumulatorValue(args->at(0)); 2943 VisitForAccumulatorValue(args->at(0));
2968 2944
2969 // If the object is not a JSReceiver, we return null. 2945 // If the object is not a JSReceiver, we return null.
2970 __ JumpIfSmi(x0, &null); 2946 __ JumpIfSmi(x0, &null);
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
4659 } 4635 }
4660 4636
4661 return INTERRUPT; 4637 return INTERRUPT;
4662 } 4638 }
4663 4639
4664 4640
4665 } // namespace internal 4641 } // namespace internal
4666 } // namespace v8 4642 } // namespace v8
4667 4643
4668 #endif // V8_TARGET_ARCH_ARM64 4644 #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