| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 566 void NamedLoadHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 567 if (!miss->is_unused()) { | 567 if (!miss->is_unused()) { |
| 568 Label success; | 568 Label success; |
| 569 __ B(&success); | 569 __ B(&success); |
| 570 | 570 |
| 571 __ Bind(miss); | 571 __ Bind(miss); |
| 572 if (IC::ICUseVector(kind())) { | 572 if (IC::ICUseVector(kind())) { |
| 573 DCHECK(kind() == Code::LOAD_IC); | 573 DCHECK(kind() == Code::LOAD_IC); |
| 574 PopVectorAndSlot(); | 574 PopVectorAndSlot(); |
| 575 } | 575 } |
| 576 TailCallBuiltin(masm(), MissBuiltin(kind())); | 576 TailCallMissHandler(masm(), kind()); |
| 577 | 577 |
| 578 __ Bind(&success); | 578 __ Bind(&success); |
| 579 } | 579 } |
| 580 } | 580 } |
| 581 | 581 |
| 582 | 582 |
| 583 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { | 583 void NamedStoreHandlerCompiler::FrontendFooter(Handle<Name> name, Label* miss) { |
| 584 if (!miss->is_unused()) { | 584 if (!miss->is_unused()) { |
| 585 Label success; | 585 Label success; |
| 586 __ B(&success); | 586 __ B(&success); |
| 587 | 587 |
| 588 GenerateRestoreName(miss, name); | 588 GenerateRestoreName(miss, name); |
| 589 if (IC::ICUseVector(kind())) PopVectorAndSlot(); | 589 if (IC::ICUseVector(kind())) PopVectorAndSlot(); |
| 590 TailCallBuiltin(masm(), MissBuiltin(kind())); | 590 TailCallMissHandler(masm(), kind()); |
| 591 | 591 |
| 592 __ Bind(&success); | 592 __ Bind(&success); |
| 593 } | 593 } |
| 594 } | 594 } |
| 595 | 595 |
| 596 | 596 |
| 597 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 597 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 598 // Return the constant value. | 598 // Return the constant value. |
| 599 __ LoadObject(x0, value); | 599 __ LoadObject(x0, value); |
| 600 __ Ret(); | 600 __ Ret(); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 // Return the generated code. | 702 // Return the generated code. |
| 703 return GetCode(kind(), name); | 703 return GetCode(kind(), name); |
| 704 } | 704 } |
| 705 | 705 |
| 706 | 706 |
| 707 #undef __ | 707 #undef __ |
| 708 } // namespace internal | 708 } // namespace internal |
| 709 } // namespace v8 | 709 } // namespace v8 |
| 710 | 710 |
| 711 #endif // V8_TARGET_ARCH_IA32 | 711 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |