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

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

Issue 1809993002: Provide optimized support for the %GetOrdinaryHasInstance intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@bare-4774-fix
Patch Set: REBASE and nit. Created 4 years, 9 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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3195 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3196 ZoneList<Expression*>* args = expr->arguments(); 3196 ZoneList<Expression*>* args = expr->arguments();
3197 DCHECK_EQ(1, args->length()); 3197 DCHECK_EQ(1, args->length());
3198 VisitForAccumulatorValue(args->at(0)); 3198 VisitForAccumulatorValue(args->at(0));
3199 __ AssertFunction(eax); 3199 __ AssertFunction(eax);
3200 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); 3200 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
3201 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); 3201 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset));
3202 context()->Plug(eax); 3202 context()->Plug(eax);
3203 } 3203 }
3204 3204
3205 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3206 DCHECK_EQ(0, expr->arguments()->length());
3207 __ mov(eax, NativeContextOperand());
3208 __ mov(eax, ContextOperand(eax, Context::ORDINARY_HAS_INSTANCE_INDEX));
3209 context()->Plug(eax);
3210 }
3205 3211
3206 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3212 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3207 DCHECK(expr->arguments()->length() == 0); 3213 DCHECK(expr->arguments()->length() == 0);
3208 ExternalReference debug_is_active = 3214 ExternalReference debug_is_active =
3209 ExternalReference::debug_is_active_address(isolate()); 3215 ExternalReference::debug_is_active_address(isolate());
3210 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); 3216 __ movzx_b(eax, Operand::StaticVariable(debug_is_active));
3211 __ SmiTag(eax); 3217 __ SmiTag(eax);
3212 context()->Plug(eax); 3218 context()->Plug(eax);
3213 } 3219 }
3214 3220
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
3997 isolate->builtins()->OnStackReplacement()->entry(), 4003 isolate->builtins()->OnStackReplacement()->entry(),
3998 Assembler::target_address_at(call_target_address, unoptimized_code)); 4004 Assembler::target_address_at(call_target_address, unoptimized_code));
3999 return ON_STACK_REPLACEMENT; 4005 return ON_STACK_REPLACEMENT;
4000 } 4006 }
4001 4007
4002 4008
4003 } // namespace internal 4009 } // namespace internal
4004 } // namespace v8 4010 } // namespace v8
4005 4011
4006 #endif // V8_TARGET_ARCH_IA32 4012 #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