| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 __ push(scratch1()); // restore return address | 756 __ push(scratch1()); // restore return address |
| 757 | 757 |
| 758 // Do tail-call to the runtime system. | 758 // Do tail-call to the runtime system. |
| 759 __ TailCallRuntime(Runtime::kStoreCallbackProperty); | 759 __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
| 760 | 760 |
| 761 // Return the generated code. | 761 // Return the generated code. |
| 762 return GetCode(kind(), Code::FAST, name); | 762 return GetCode(kind(), Code::FAST, name); |
| 763 } | 763 } |
| 764 | 764 |
| 765 | 765 |
| 766 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( | |
| 767 Handle<Name> name) { | |
| 768 __ pop(scratch1()); // remove the return address | |
| 769 __ push(receiver()); | |
| 770 __ push(this->name()); | |
| 771 __ push(value()); | |
| 772 __ push(scratch1()); // restore return address | |
| 773 | |
| 774 // Do tail-call to the runtime system. | |
| 775 __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor); | |
| 776 | |
| 777 // Return the generated code. | |
| 778 return GetCode(kind(), Code::FAST, name); | |
| 779 } | |
| 780 | |
| 781 | |
| 782 Register NamedStoreHandlerCompiler::value() { | 766 Register NamedStoreHandlerCompiler::value() { |
| 783 return StoreDescriptor::ValueRegister(); | 767 return StoreDescriptor::ValueRegister(); |
| 784 } | 768 } |
| 785 | 769 |
| 786 | 770 |
| 787 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( | 771 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
| 788 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { | 772 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { |
| 789 Label miss; | 773 Label miss; |
| 790 if (IC::ICUseVector(kind())) { | 774 if (IC::ICUseVector(kind())) { |
| 791 PushVectorAndSlot(); | 775 PushVectorAndSlot(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 819 // Return the generated code. | 803 // Return the generated code. |
| 820 return GetCode(kind(), Code::NORMAL, name); | 804 return GetCode(kind(), Code::NORMAL, name); |
| 821 } | 805 } |
| 822 | 806 |
| 823 | 807 |
| 824 #undef __ | 808 #undef __ |
| 825 } // namespace internal | 809 } // namespace internal |
| 826 } // namespace v8 | 810 } // namespace v8 |
| 827 | 811 |
| 828 #endif // V8_TARGET_ARCH_X87 | 812 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |