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

Side by Side Diff: src/ic/arm/handler-compiler-arm.cc

Issue 1817913003: Turn StoreWithInterceptor into a turbofan stub (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 | « src/code-stubs.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698