OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 } | 696 } |
697 __ Push(ip); | 697 __ Push(ip); |
698 __ mov(ip, Operand(name)); | 698 __ mov(ip, Operand(name)); |
699 __ Push(ip, value()); | 699 __ Push(ip, value()); |
700 __ Push(Smi::FromInt(language_mode)); | 700 __ Push(Smi::FromInt(language_mode)); |
701 | 701 |
702 // Do tail-call to the runtime system. | 702 // Do tail-call to the runtime system. |
703 __ TailCallRuntime(Runtime::kStoreCallbackProperty); | 703 __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
704 | 704 |
705 // Return the generated code. | 705 // Return the generated code. |
706 return GetCode(kind(), Code::FAST, name); | 706 return GetCode(kind(), name); |
707 } | 707 } |
708 | 708 |
709 Register NamedStoreHandlerCompiler::value() { | 709 Register NamedStoreHandlerCompiler::value() { |
710 return StoreDescriptor::ValueRegister(); | 710 return StoreDescriptor::ValueRegister(); |
711 } | 711 } |
712 | 712 |
713 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( | 713 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
714 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { | 714 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { |
715 Label miss; | 715 Label miss; |
716 if (IC::ICUseVector(kind())) { | 716 if (IC::ICUseVector(kind())) { |
(...skipping 16 matching lines...) Expand all Loading... |
733 Counters* counters = isolate()->counters(); | 733 Counters* counters = isolate()->counters(); |
734 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r3, r5); | 734 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r3, r5); |
735 if (IC::ICUseVector(kind())) { | 735 if (IC::ICUseVector(kind())) { |
736 DiscardVectorAndSlot(); | 736 DiscardVectorAndSlot(); |
737 } | 737 } |
738 __ Ret(); | 738 __ Ret(); |
739 | 739 |
740 FrontendFooter(name, &miss); | 740 FrontendFooter(name, &miss); |
741 | 741 |
742 // Return the generated code. | 742 // Return the generated code. |
743 return GetCode(kind(), Code::NORMAL, name); | 743 return GetCode(kind(), name); |
744 } | 744 } |
745 | 745 |
746 #undef __ | 746 #undef __ |
747 } // namespace internal | 747 } // namespace internal |
748 } // namespace v8 | 748 } // namespace v8 |
749 | 749 |
750 #endif // V8_TARGET_ARCH_ARM | 750 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |