OLD | NEW |
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/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
8 | 8 |
9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 502 |
503 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 503 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
504 if (!miss->is_unused()) { | 504 if (!miss->is_unused()) { |
505 Label success; | 505 Label success; |
506 __ b(&success); | 506 __ b(&success); |
507 __ bind(miss); | 507 __ bind(miss); |
508 if (IC::ICUseVector(kind())) { | 508 if (IC::ICUseVector(kind())) { |
509 DCHECK(kind() == Code::LOAD_IC); | 509 DCHECK(kind() == Code::LOAD_IC); |
510 PopVectorAndSlot(); | 510 PopVectorAndSlot(); |
511 } | 511 } |
512 TailCallBuiltin(masm(), MissBuiltin(kind())); | 512 TailCallMissHandler(masm(), kind()); |
513 __ bind(&success); | 513 __ bind(&success); |
514 } | 514 } |
515 } | 515 } |
516 | 516 |
517 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 517 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
518 if (!miss->is_unused()) { | 518 if (!miss->is_unused()) { |
519 Label success; | 519 Label success; |
520 __ b(&success); | 520 __ b(&success); |
521 GenerateRestoreName(miss, name); | 521 GenerateRestoreName(miss, name); |
522 if (IC::ICUseVector(kind())) PopVectorAndSlot(); | 522 if (IC::ICUseVector(kind())) PopVectorAndSlot(); |
523 TailCallBuiltin(masm(), MissBuiltin(kind())); | 523 TailCallMissHandler(masm(), kind()); |
524 __ bind(&success); | 524 __ bind(&success); |
525 } | 525 } |
526 } | 526 } |
527 | 527 |
528 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 528 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
529 // Return the constant value. | 529 // Return the constant value. |
530 __ Move(r2, value); | 530 __ Move(r2, value); |
531 __ Ret(); | 531 __ Ret(); |
532 } | 532 } |
533 | 533 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 | 661 |
662 // Return the generated code. | 662 // Return the generated code. |
663 return GetCode(kind(), name); | 663 return GetCode(kind(), name); |
664 } | 664 } |
665 | 665 |
666 #undef __ | 666 #undef __ |
667 } // namespace internal | 667 } // namespace internal |
668 } // namespace v8 | 668 } // namespace v8 |
669 | 669 |
670 #endif // V8_TARGET_ARCH_ARM | 670 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |