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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 __ Push(Smi::FromInt(language_mode)); | 741 __ Push(Smi::FromInt(language_mode)); |
742 | 742 |
743 // Do tail-call to the runtime system. | 743 // Do tail-call to the runtime system. |
744 __ TailCallRuntime(Runtime::kStoreCallbackProperty); | 744 __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
745 | 745 |
746 // Return the generated code. | 746 // Return the generated code. |
747 return GetCode(kind(), Code::FAST, name); | 747 return GetCode(kind(), Code::FAST, name); |
748 } | 748 } |
749 | 749 |
750 | 750 |
751 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( | |
752 Handle<Name> name) { | |
753 __ Push(receiver(), this->name(), value()); | |
754 | |
755 // Do tail-call to the runtime system. | |
756 __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor); | |
757 | |
758 // Return the generated code. | |
759 return GetCode(kind(), Code::FAST, name); | |
760 } | |
761 | |
762 | |
763 Register NamedStoreHandlerCompiler::value() { | 751 Register NamedStoreHandlerCompiler::value() { |
764 return StoreDescriptor::ValueRegister(); | 752 return StoreDescriptor::ValueRegister(); |
765 } | 753 } |
766 | 754 |
767 | 755 |
768 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( | 756 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
769 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { | 757 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { |
770 Label miss; | 758 Label miss; |
771 if (IC::ICUseVector(kind())) { | 759 if (IC::ICUseVector(kind())) { |
772 PushVectorAndSlot(); | 760 PushVectorAndSlot(); |
(...skipping 25 matching lines...) Expand all Loading... |
798 // Return the generated code. | 786 // Return the generated code. |
799 return GetCode(kind(), Code::NORMAL, name); | 787 return GetCode(kind(), Code::NORMAL, name); |
800 } | 788 } |
801 | 789 |
802 | 790 |
803 #undef __ | 791 #undef __ |
804 } // namespace internal | 792 } // namespace internal |
805 } // namespace v8 | 793 } // namespace v8 |
806 | 794 |
807 #endif // V8_TARGET_ARCH_ARM | 795 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |