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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/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 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 2988
2989 __ JumpIfSmi(rax, if_false); 2989 __ JumpIfSmi(rax, if_false);
2990 __ CmpObjectType(rax, JS_PROXY_TYPE, rbx); 2990 __ CmpObjectType(rax, JS_PROXY_TYPE, rbx);
2991 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 2991 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
2992 Split(equal, if_true, if_false, fall_through); 2992 Split(equal, if_true, if_false, fall_through);
2993 2993
2994 context()->Plug(if_true, if_false); 2994 context()->Plug(if_true, if_false);
2995 } 2995 }
2996 2996
2997 2997
2998 void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) {
2999 ZoneList<Expression*>* args = expr->arguments();
3000 DCHECK(args->length() == 2);
3001
3002 // Load the two objects into registers and perform the comparison.
3003 VisitForStackValue(args->at(0));
3004 VisitForAccumulatorValue(args->at(1));
3005
3006 Label materialize_true, materialize_false;
3007 Label* if_true = NULL;
3008 Label* if_false = NULL;
3009 Label* fall_through = NULL;
3010 context()->PrepareTest(&materialize_true, &materialize_false,
3011 &if_true, &if_false, &fall_through);
3012
3013 __ Pop(rbx);
3014 __ cmpp(rax, rbx);
3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3016 Split(equal, if_true, if_false, fall_through);
3017
3018 context()->Plug(if_true, if_false);
3019 }
3020
3021
3022 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { 2998 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
3023 ZoneList<Expression*>* args = expr->arguments(); 2999 ZoneList<Expression*>* args = expr->arguments();
3024 DCHECK(args->length() == 1); 3000 DCHECK(args->length() == 1);
3025 Label done, null, function, non_function_constructor; 3001 Label done, null, function, non_function_constructor;
3026 3002
3027 VisitForAccumulatorValue(args->at(0)); 3003 VisitForAccumulatorValue(args->at(0));
3028 3004
3029 // If the object is not a JSReceiver, we return null. 3005 // If the object is not a JSReceiver, we return null.
3030 __ JumpIfSmi(rax, &null, Label::kNear); 3006 __ JumpIfSmi(rax, &null, Label::kNear);
3031 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 3007 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
4543 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4519 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4544 Assembler::target_address_at(call_target_address, 4520 Assembler::target_address_at(call_target_address,
4545 unoptimized_code)); 4521 unoptimized_code));
4546 return OSR_AFTER_STACK_CHECK; 4522 return OSR_AFTER_STACK_CHECK;
4547 } 4523 }
4548 4524
4549 } // namespace internal 4525 } // namespace internal
4550 } // namespace v8 4526 } // namespace v8
4551 4527
4552 #endif // V8_TARGET_ARCH_X64 4528 #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