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 #ifndef V8_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 V(AllocateMutableHeapNumber) \ | 102 V(AllocateMutableHeapNumber) \ |
103 V(StringLength) \ | 103 V(StringLength) \ |
104 V(LessThan) \ | 104 V(LessThan) \ |
105 V(LessThanOrEqual) \ | 105 V(LessThanOrEqual) \ |
106 V(GreaterThan) \ | 106 V(GreaterThan) \ |
107 V(GreaterThanOrEqual) \ | 107 V(GreaterThanOrEqual) \ |
108 V(StrictEqual) \ | 108 V(StrictEqual) \ |
109 V(StrictNotEqual) \ | 109 V(StrictNotEqual) \ |
110 V(StringEqual) \ | 110 V(StringEqual) \ |
111 V(StringNotEqual) \ | 111 V(StringNotEqual) \ |
| 112 V(StringLessThan) \ |
| 113 V(StringLessThanOrEqual) \ |
| 114 V(StringGreaterThan) \ |
| 115 V(StringGreaterThanOrEqual) \ |
112 V(ToBoolean) \ | 116 V(ToBoolean) \ |
113 /* IC Handler stubs */ \ | 117 /* IC Handler stubs */ \ |
114 V(ArrayBufferViewLoadField) \ | 118 V(ArrayBufferViewLoadField) \ |
115 V(LoadConstant) \ | 119 V(LoadConstant) \ |
116 V(LoadFastElement) \ | 120 V(LoadFastElement) \ |
117 V(LoadField) \ | 121 V(LoadField) \ |
118 V(KeyedLoadSloppyArguments) \ | 122 V(KeyedLoadSloppyArguments) \ |
119 V(KeyedStoreSloppyArguments) \ | 123 V(KeyedStoreSloppyArguments) \ |
120 V(StoreField) \ | 124 V(StoreField) \ |
121 V(StoreGlobal) \ | 125 V(StoreGlobal) \ |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 }; | 698 }; |
695 | 699 |
696 class StringNotEqualStub final : public TurboFanCodeStub { | 700 class StringNotEqualStub final : public TurboFanCodeStub { |
697 public: | 701 public: |
698 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 702 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
699 | 703 |
700 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 704 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
701 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); | 705 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); |
702 }; | 706 }; |
703 | 707 |
| 708 class StringLessThanStub final : public TurboFanCodeStub { |
| 709 public: |
| 710 explicit StringLessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 711 |
| 712 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 713 DEFINE_TURBOFAN_CODE_STUB(StringLessThan, TurboFanCodeStub); |
| 714 }; |
| 715 |
| 716 class StringLessThanOrEqualStub final : public TurboFanCodeStub { |
| 717 public: |
| 718 explicit StringLessThanOrEqualStub(Isolate* isolate) |
| 719 : TurboFanCodeStub(isolate) {} |
| 720 |
| 721 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 722 DEFINE_TURBOFAN_CODE_STUB(StringLessThanOrEqual, TurboFanCodeStub); |
| 723 }; |
| 724 |
| 725 class StringGreaterThanStub final : public TurboFanCodeStub { |
| 726 public: |
| 727 explicit StringGreaterThanStub(Isolate* isolate) |
| 728 : TurboFanCodeStub(isolate) {} |
| 729 |
| 730 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 731 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThan, TurboFanCodeStub); |
| 732 }; |
| 733 |
| 734 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { |
| 735 public: |
| 736 explicit StringGreaterThanOrEqualStub(Isolate* isolate) |
| 737 : TurboFanCodeStub(isolate) {} |
| 738 |
| 739 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 740 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); |
| 741 }; |
| 742 |
704 class ToBooleanStub final : public TurboFanCodeStub { | 743 class ToBooleanStub final : public TurboFanCodeStub { |
705 public: | 744 public: |
706 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 745 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
707 | 746 |
708 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); | 747 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); |
709 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); | 748 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); |
710 }; | 749 }; |
711 | 750 |
712 enum StringAddFlags { | 751 enum StringAddFlags { |
713 // Omit both parameter checks. | 752 // Omit both parameter checks. |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2951 #undef DEFINE_HYDROGEN_CODE_STUB | 2990 #undef DEFINE_HYDROGEN_CODE_STUB |
2952 #undef DEFINE_CODE_STUB | 2991 #undef DEFINE_CODE_STUB |
2953 #undef DEFINE_CODE_STUB_BASE | 2992 #undef DEFINE_CODE_STUB_BASE |
2954 | 2993 |
2955 extern Representation RepresentationFromType(Type* type); | 2994 extern Representation RepresentationFromType(Type* type); |
2956 | 2995 |
2957 } // namespace internal | 2996 } // namespace internal |
2958 } // namespace v8 | 2997 } // namespace v8 |
2959 | 2998 |
2960 #endif // V8_CODE_STUBS_H_ | 2999 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |