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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3317 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3318 ZoneList<Expression*>* args = expr->arguments(); 3318 ZoneList<Expression*>* args = expr->arguments();
3319 DCHECK_EQ(1, args->length()); 3319 DCHECK_EQ(1, args->length());
3320 VisitForAccumulatorValue(args->at(0)); 3320 VisitForAccumulatorValue(args->at(0));
3321 __ AssertFunction(v0); 3321 __ AssertFunction(v0);
3322 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); 3322 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
3323 __ lw(v0, FieldMemOperand(v0, Map::kPrototypeOffset)); 3323 __ lw(v0, FieldMemOperand(v0, Map::kPrototypeOffset));
3324 context()->Plug(v0); 3324 context()->Plug(v0);
3325 } 3325 }
3326 3326
3327 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3328 DCHECK_EQ(0, expr->arguments()->length());
3329 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, v0);
3330 context()->Plug(v0);
3331 }
3327 3332
3328 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3333 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3329 DCHECK(expr->arguments()->length() == 0); 3334 DCHECK(expr->arguments()->length() == 0);
3330 ExternalReference debug_is_active = 3335 ExternalReference debug_is_active =
3331 ExternalReference::debug_is_active_address(isolate()); 3336 ExternalReference::debug_is_active_address(isolate());
3332 __ li(at, Operand(debug_is_active)); 3337 __ li(at, Operand(debug_is_active));
3333 __ lb(v0, MemOperand(at)); 3338 __ lb(v0, MemOperand(at));
3334 __ SmiTag(v0); 3339 __ SmiTag(v0);
3335 context()->Plug(v0); 3340 context()->Plug(v0);
3336 } 3341 }
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
4114 reinterpret_cast<uint32_t>( 4119 reinterpret_cast<uint32_t>(
4115 isolate->builtins()->OnStackReplacement()->entry())); 4120 isolate->builtins()->OnStackReplacement()->entry()));
4116 return ON_STACK_REPLACEMENT; 4121 return ON_STACK_REPLACEMENT;
4117 } 4122 }
4118 4123
4119 4124
4120 } // namespace internal 4125 } // namespace internal
4121 } // namespace v8 4126 } // namespace v8
4122 4127
4123 #endif // V8_TARGET_ARCH_MIPS 4128 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698