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

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

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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 3132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3143 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3144 ZoneList<Expression*>* args = expr->arguments(); 3144 ZoneList<Expression*>* args = expr->arguments();
3145 DCHECK_EQ(1, args->length()); 3145 DCHECK_EQ(1, args->length());
3146 VisitForAccumulatorValue(args->at(0)); 3146 VisitForAccumulatorValue(args->at(0));
3147 __ AssertFunction(v0); 3147 __ AssertFunction(v0);
3148 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); 3148 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
3149 __ lw(v0, FieldMemOperand(v0, Map::kPrototypeOffset)); 3149 __ lw(v0, FieldMemOperand(v0, Map::kPrototypeOffset));
3150 context()->Plug(v0); 3150 context()->Plug(v0);
3151 } 3151 }
3152 3152
3153 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3154 DCHECK_EQ(0, expr->arguments()->length());
3155 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, v0);
3156 context()->Plug(v0);
3157 }
3158
3159 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3153 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3160 DCHECK(expr->arguments()->length() == 0); 3154 DCHECK(expr->arguments()->length() == 0);
3161 ExternalReference debug_is_active = 3155 ExternalReference debug_is_active =
3162 ExternalReference::debug_is_active_address(isolate()); 3156 ExternalReference::debug_is_active_address(isolate());
3163 __ li(at, Operand(debug_is_active)); 3157 __ li(at, Operand(debug_is_active));
3164 __ lb(v0, MemOperand(at)); 3158 __ lb(v0, MemOperand(at));
3165 __ SmiTag(v0); 3159 __ SmiTag(v0);
3166 context()->Plug(v0); 3160 context()->Plug(v0);
3167 } 3161 }
3168 3162
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
3944 reinterpret_cast<uint32_t>( 3938 reinterpret_cast<uint32_t>(
3945 isolate->builtins()->OnStackReplacement()->entry())); 3939 isolate->builtins()->OnStackReplacement()->entry()));
3946 return ON_STACK_REPLACEMENT; 3940 return ON_STACK_REPLACEMENT;
3947 } 3941 }
3948 3942
3949 3943
3950 } // namespace internal 3944 } // namespace internal
3951 } // namespace v8 3945 } // namespace v8
3952 3946
3953 #endif // V8_TARGET_ARCH_MIPS 3947 #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