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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 __ Push(Smi::FromInt(language_mode)); | 734 __ Push(Smi::FromInt(language_mode)); |
735 | 735 |
736 // Do tail-call to the runtime system. | 736 // Do tail-call to the runtime system. |
737 __ TailCallRuntime(Runtime::kStoreCallbackProperty); | 737 __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
738 | 738 |
739 // Return the generated code. | 739 // Return the generated code. |
740 return GetCode(kind(), Code::FAST, name); | 740 return GetCode(kind(), Code::FAST, name); |
741 } | 741 } |
742 | 742 |
743 | 743 |
744 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( | |
745 Handle<Name> name) { | |
746 __ Push(receiver(), this->name(), value()); | |
747 | |
748 // Do tail-call to the runtime system. | |
749 __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor); | |
750 | |
751 // Return the generated code. | |
752 return GetCode(kind(), Code::FAST, name); | |
753 } | |
754 | |
755 | |
756 Register NamedStoreHandlerCompiler::value() { | 744 Register NamedStoreHandlerCompiler::value() { |
757 return StoreDescriptor::ValueRegister(); | 745 return StoreDescriptor::ValueRegister(); |
758 } | 746 } |
759 | 747 |
760 | 748 |
761 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( | 749 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
762 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { | 750 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { |
763 Label miss; | 751 Label miss; |
764 if (IC::ICUseVector(kind())) { | 752 if (IC::ICUseVector(kind())) { |
765 PushVectorAndSlot(); | 753 PushVectorAndSlot(); |
(...skipping 25 matching lines...) Expand all Loading... |
791 // Return the generated code. | 779 // Return the generated code. |
792 return GetCode(kind(), Code::NORMAL, name); | 780 return GetCode(kind(), Code::NORMAL, name); |
793 } | 781 } |
794 | 782 |
795 | 783 |
796 #undef __ | 784 #undef __ |
797 } // namespace internal | 785 } // namespace internal |
798 } // namespace v8 | 786 } // namespace v8 |
799 | 787 |
800 #endif // V8_TARGET_ARCH_ARM | 788 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |