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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3309 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3320 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3321 ZoneList<Expression*>* args = expr->arguments(); 3321 ZoneList<Expression*>* args = expr->arguments();
3322 DCHECK_EQ(1, args->length()); 3322 DCHECK_EQ(1, args->length());
3323 VisitForAccumulatorValue(args->at(0)); 3323 VisitForAccumulatorValue(args->at(0));
3324 __ AssertFunction(v0); 3324 __ AssertFunction(v0);
3325 __ ld(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); 3325 __ ld(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
3326 __ ld(v0, FieldMemOperand(v0, Map::kPrototypeOffset)); 3326 __ ld(v0, FieldMemOperand(v0, Map::kPrototypeOffset));
3327 context()->Plug(v0); 3327 context()->Plug(v0);
3328 } 3328 }
3329 3329
3330 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3331 DCHECK_EQ(0, expr->arguments()->length());
3332 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, v0);
3333 context()->Plug(v0);
3334 }
3330 3335
3331 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3336 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3332 DCHECK(expr->arguments()->length() == 0); 3337 DCHECK(expr->arguments()->length() == 0);
3333 ExternalReference debug_is_active = 3338 ExternalReference debug_is_active =
3334 ExternalReference::debug_is_active_address(isolate()); 3339 ExternalReference::debug_is_active_address(isolate());
3335 __ li(at, Operand(debug_is_active)); 3340 __ li(at, Operand(debug_is_active));
3336 __ lbu(v0, MemOperand(at)); 3341 __ lbu(v0, MemOperand(at));
3337 __ SmiTag(v0); 3342 __ SmiTag(v0);
3338 context()->Plug(v0); 3343 context()->Plug(v0);
3339 } 3344 }
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
4123 reinterpret_cast<uint64_t>( 4128 reinterpret_cast<uint64_t>(
4124 isolate->builtins()->OnStackReplacement()->entry())); 4129 isolate->builtins()->OnStackReplacement()->entry()));
4125 return ON_STACK_REPLACEMENT; 4130 return ON_STACK_REPLACEMENT;
4126 } 4131 }
4127 4132
4128 4133
4129 } // namespace internal 4134 } // namespace internal
4130 } // namespace v8 4135 } // namespace v8
4131 4136
4132 #endif // V8_TARGET_ARCH_MIPS64 4137 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.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