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

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

Issue 1813873003: S390: Provide optimized support for the %GetOrdinaryHasInstance intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 3204 matching lines...) Expand 10 before | Expand all | Expand 10 after
3215 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3215 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3216 ZoneList<Expression*>* args = expr->arguments(); 3216 ZoneList<Expression*>* args = expr->arguments();
3217 DCHECK_EQ(1, args->length()); 3217 DCHECK_EQ(1, args->length());
3218 VisitForAccumulatorValue(args->at(0)); 3218 VisitForAccumulatorValue(args->at(0));
3219 __ AssertFunction(r2); 3219 __ AssertFunction(r2);
3220 __ LoadP(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); 3220 __ LoadP(r2, FieldMemOperand(r2, HeapObject::kMapOffset));
3221 __ LoadP(r2, FieldMemOperand(r2, Map::kPrototypeOffset)); 3221 __ LoadP(r2, FieldMemOperand(r2, Map::kPrototypeOffset));
3222 context()->Plug(r2); 3222 context()->Plug(r2);
3223 } 3223 }
3224 3224
3225 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3226 DCHECK_EQ(0, expr->arguments()->length());
3227 __ LoadNativeContextSlot(Context::ORDINARY_HAS_INSTANCE_INDEX, r2);
3228 context()->Plug(r2);
3229 }
3230
3225 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3231 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3226 DCHECK(expr->arguments()->length() == 0); 3232 DCHECK(expr->arguments()->length() == 0);
3227 ExternalReference debug_is_active = 3233 ExternalReference debug_is_active =
3228 ExternalReference::debug_is_active_address(isolate()); 3234 ExternalReference::debug_is_active_address(isolate());
3229 __ mov(ip, Operand(debug_is_active)); 3235 __ mov(ip, Operand(debug_is_active));
3230 __ LoadlB(r2, MemOperand(ip)); 3236 __ LoadlB(r2, MemOperand(ip));
3231 __ SmiTag(r2); 3237 __ SmiTag(r2);
3232 context()->Plug(r2); 3238 context()->Plug(r2);
3233 } 3239 }
3234 3240
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
3987 DCHECK(kOSRBranchInstruction == br_instr); 3993 DCHECK(kOSRBranchInstruction == br_instr);
3988 3994
3989 DCHECK(interrupt_address == 3995 DCHECK(interrupt_address ==
3990 isolate->builtins()->OnStackReplacement()->entry()); 3996 isolate->builtins()->OnStackReplacement()->entry());
3991 return ON_STACK_REPLACEMENT; 3997 return ON_STACK_REPLACEMENT;
3992 } 3998 }
3993 3999
3994 } // namespace internal 4000 } // namespace internal
3995 } // namespace v8 4001 } // namespace v8
3996 #endif // V8_TARGET_ARCH_S390 4002 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698