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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 3002
3003 __ JumpIfSmi(eax, if_false); 3003 __ JumpIfSmi(eax, if_false);
3004 __ CmpObjectType(eax, JS_PROXY_TYPE, ebx); 3004 __ CmpObjectType(eax, JS_PROXY_TYPE, ebx);
3005 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3005 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3006 Split(equal, if_true, if_false, fall_through); 3006 Split(equal, if_true, if_false, fall_through);
3007 3007
3008 context()->Plug(if_true, if_false); 3008 context()->Plug(if_true, if_false);
3009 } 3009 }
3010 3010
3011 3011
3012 void FullCodeGenerator::EmitObjectEquals(CallRuntime* expr) {
3013 ZoneList<Expression*>* args = expr->arguments();
3014 DCHECK(args->length() == 2);
3015
3016 // Load the two objects into registers and perform the comparison.
3017 VisitForStackValue(args->at(0));
3018 VisitForAccumulatorValue(args->at(1));
3019
3020 Label materialize_true, materialize_false;
3021 Label* if_true = NULL;
3022 Label* if_false = NULL;
3023 Label* fall_through = NULL;
3024 context()->PrepareTest(&materialize_true, &materialize_false,
3025 &if_true, &if_false, &fall_through);
3026
3027 __ pop(ebx);
3028 __ cmp(eax, ebx);
3029 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3030 Split(equal, if_true, if_false, fall_through);
3031
3032 context()->Plug(if_true, if_false);
3033 }
3034
3035
3036 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { 3012 void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
3037 ZoneList<Expression*>* args = expr->arguments(); 3013 ZoneList<Expression*>* args = expr->arguments();
3038 DCHECK(args->length() == 1); 3014 DCHECK(args->length() == 1);
3039 Label done, null, function, non_function_constructor; 3015 Label done, null, function, non_function_constructor;
3040 3016
3041 VisitForAccumulatorValue(args->at(0)); 3017 VisitForAccumulatorValue(args->at(0));
3042 3018
3043 // If the object is not a JSReceiver, we return null. 3019 // If the object is not a JSReceiver, we return null.
3044 __ JumpIfSmi(eax, &null, Label::kNear); 3020 __ JumpIfSmi(eax, &null, Label::kNear);
3045 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 3021 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
4543 Assembler::target_address_at(call_target_address, 4519 Assembler::target_address_at(call_target_address,
4544 unoptimized_code)); 4520 unoptimized_code));
4545 return OSR_AFTER_STACK_CHECK; 4521 return OSR_AFTER_STACK_CHECK;
4546 } 4522 }
4547 4523
4548 4524
4549 } // namespace internal 4525 } // namespace internal
4550 } // namespace v8 4526 } // namespace v8
4551 4527
4552 #endif // V8_TARGET_ARCH_IA32 4528 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698