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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3078 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 3089
3090 __ JumpIfSmi(r3, if_false); 3090 __ JumpIfSmi(r3, if_false);
3091 __ CompareObjectType(r3, r4, r4, JS_PROXY_TYPE); 3091 __ CompareObjectType(r3, r4, r4, JS_PROXY_TYPE);
3092 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3092 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3093 Split(eq, if_true, if_false, fall_through); 3093 Split(eq, if_true, if_false, fall_through);
3094 3094
3095 context()->Plug(if_true, if_false); 3095 context()->Plug(if_true, if_false);
3096 } 3096 }
3097 3097
3098 3098
3099 void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) {
3100 ZoneList<Expression*>* args = expr->arguments();
3101 DCHECK(args->length() == 2);
3102
3103 // Load the two objects into registers and perform the comparison.
3104 VisitForStackValue(args->at(0));
3105 VisitForAccumulatorValue(args->at(1));
3106
3107 Label materialize_true, materialize_false;
3108 Label* if_true = NULL;
3109 Label* if_false = NULL;
3110 Label* fall_through = NULL;
3111 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3112 &if_false, &fall_through);
3113
3114 __ pop(r4);
3115 __ cmp(r3, r4);
3116 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3117 Split(eq, if_true, if_false, fall_through);
3118
3119 context()->Plug(if_true, if_false);
3120 }
3121
3122
3123 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { 3099 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
3124 ZoneList<Expression*>* args = expr->arguments(); 3100 ZoneList<Expression*>* args = expr->arguments();
3125 DCHECK(args->length() == 1); 3101 DCHECK(args->length() == 1);
3126 Label done, null, function, non_function_constructor; 3102 Label done, null, function, non_function_constructor;
3127 3103
3128 VisitForAccumulatorValue(args->at(0)); 3104 VisitForAccumulatorValue(args->at(0));
3129 3105
3130 // If the object is not a JSReceiver, we return null. 3106 // If the object is not a JSReceiver, we return null.
3131 __ JumpIfSmi(r3, &null); 3107 __ JumpIfSmi(r3, &null);
3132 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 3108 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
4582 return ON_STACK_REPLACEMENT; 4558 return ON_STACK_REPLACEMENT;
4583 } 4559 }
4584 4560
4585 DCHECK(interrupt_address == 4561 DCHECK(interrupt_address ==
4586 isolate->builtins()->OsrAfterStackCheck()->entry()); 4562 isolate->builtins()->OsrAfterStackCheck()->entry());
4587 return OSR_AFTER_STACK_CHECK; 4563 return OSR_AFTER_STACK_CHECK;
4588 } 4564 }
4589 } // namespace internal 4565 } // namespace internal
4590 } // namespace v8 4566 } // namespace v8
4591 #endif // V8_TARGET_ARCH_PPC 4567 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698