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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/debug/mirrors.js ('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 3110 matching lines...) Expand 10 before | Expand all | Expand 10 after
3121 3121
3122 __ JumpIfSmi(r0, if_false); 3122 __ JumpIfSmi(r0, if_false);
3123 __ CompareObjectType(r0, r1, r1, JS_PROXY_TYPE); 3123 __ CompareObjectType(r0, r1, r1, JS_PROXY_TYPE);
3124 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3124 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3125 Split(eq, if_true, if_false, fall_through); 3125 Split(eq, if_true, if_false, fall_through);
3126 3126
3127 context()->Plug(if_true, if_false); 3127 context()->Plug(if_true, if_false);
3128 } 3128 }
3129 3129
3130 3130
3131 void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) {
3132 ZoneList<Expression*>* args = expr->arguments();
3133 DCHECK(args->length() == 2);
3134
3135 // Load the two objects into registers and perform the comparison.
3136 VisitForStackValue(args->at(0));
3137 VisitForAccumulatorValue(args->at(1));
3138
3139 Label materialize_true, materialize_false;
3140 Label* if_true = NULL;
3141 Label* if_false = NULL;
3142 Label* fall_through = NULL;
3143 context()->PrepareTest(&materialize_true, &materialize_false,
3144 &if_true, &if_false, &fall_through);
3145
3146 __ pop(r1);
3147 __ cmp(r0, r1);
3148 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3149 Split(eq, if_true, if_false, fall_through);
3150
3151 context()->Plug(if_true, if_false);
3152 }
3153
3154
3155 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { 3131 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
3156 ZoneList<Expression*>* args = expr->arguments(); 3132 ZoneList<Expression*>* args = expr->arguments();
3157 DCHECK(args->length() == 1); 3133 DCHECK(args->length() == 1);
3158 Label done, null, function, non_function_constructor; 3134 Label done, null, function, non_function_constructor;
3159 3135
3160 VisitForAccumulatorValue(args->at(0)); 3136 VisitForAccumulatorValue(args->at(0));
3161 3137
3162 // If the object is not a JSReceiver, we return null. 3138 // If the object is not a JSReceiver, we return null.
3163 __ JumpIfSmi(r0, &null); 3139 __ JumpIfSmi(r0, &null);
3164 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 3140 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
4682 DCHECK(interrupt_address == 4658 DCHECK(interrupt_address ==
4683 isolate->builtins()->OsrAfterStackCheck()->entry()); 4659 isolate->builtins()->OsrAfterStackCheck()->entry());
4684 return OSR_AFTER_STACK_CHECK; 4660 return OSR_AFTER_STACK_CHECK;
4685 } 4661 }
4686 4662
4687 4663
4688 } // namespace internal 4664 } // namespace internal
4689 } // namespace v8 4665 } // namespace v8
4690 4666
4691 #endif // V8_TARGET_ARCH_ARM 4667 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/debug/mirrors.js ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698