| 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 28 matching lines...) Expand all Loading... |
| 39 V(LoadICTrampoline) \ | 39 V(LoadICTrampoline) \ |
| 40 V(CallICTrampoline) \ | 40 V(CallICTrampoline) \ |
| 41 V(LoadIndexedInterceptor) \ | 41 V(LoadIndexedInterceptor) \ |
| 42 V(LoadIndexedString) \ | 42 V(LoadIndexedString) \ |
| 43 V(MathPow) \ | 43 V(MathPow) \ |
| 44 V(ProfileEntryHook) \ | 44 V(ProfileEntryHook) \ |
| 45 V(RecordWrite) \ | 45 V(RecordWrite) \ |
| 46 V(RegExpExec) \ | 46 V(RegExpExec) \ |
| 47 V(StoreBufferOverflow) \ | 47 V(StoreBufferOverflow) \ |
| 48 V(StoreElement) \ | 48 V(StoreElement) \ |
| 49 V(StringCompare) \ | |
| 50 V(StubFailureTrampoline) \ | 49 V(StubFailureTrampoline) \ |
| 51 V(SubString) \ | 50 V(SubString) \ |
| 52 V(ToNumber) \ | 51 V(ToNumber) \ |
| 53 V(ToLength) \ | 52 V(ToLength) \ |
| 54 V(ToString) \ | 53 V(ToString) \ |
| 55 V(ToName) \ | 54 V(ToName) \ |
| 56 V(ToObject) \ | 55 V(ToObject) \ |
| 57 V(VectorStoreICTrampoline) \ | 56 V(VectorStoreICTrampoline) \ |
| 58 V(VectorKeyedStoreICTrampoline) \ | 57 V(VectorKeyedStoreICTrampoline) \ |
| 59 V(VectorStoreIC) \ | 58 V(VectorStoreIC) \ |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 V(AllocateMutableHeapNumber) \ | 101 V(AllocateMutableHeapNumber) \ |
| 103 V(StringLength) \ | 102 V(StringLength) \ |
| 104 V(LessThan) \ | 103 V(LessThan) \ |
| 105 V(LessThanOrEqual) \ | 104 V(LessThanOrEqual) \ |
| 106 V(GreaterThan) \ | 105 V(GreaterThan) \ |
| 107 V(GreaterThanOrEqual) \ | 106 V(GreaterThanOrEqual) \ |
| 108 V(StrictEqual) \ | 107 V(StrictEqual) \ |
| 109 V(StrictNotEqual) \ | 108 V(StrictNotEqual) \ |
| 110 V(StringEqual) \ | 109 V(StringEqual) \ |
| 111 V(StringNotEqual) \ | 110 V(StringNotEqual) \ |
| 111 V(StringLessThan) \ |
| 112 V(StringLessThanOrEqual) \ |
| 113 V(StringGreaterThan) \ |
| 114 V(StringGreaterThanOrEqual) \ |
| 112 V(ToBoolean) \ | 115 V(ToBoolean) \ |
| 113 /* IC Handler stubs */ \ | 116 /* IC Handler stubs */ \ |
| 114 V(ArrayBufferViewLoadField) \ | 117 V(ArrayBufferViewLoadField) \ |
| 115 V(LoadConstant) \ | 118 V(LoadConstant) \ |
| 116 V(LoadFastElement) \ | 119 V(LoadFastElement) \ |
| 117 V(LoadField) \ | 120 V(LoadField) \ |
| 118 V(KeyedLoadSloppyArguments) \ | 121 V(KeyedLoadSloppyArguments) \ |
| 119 V(KeyedStoreSloppyArguments) \ | 122 V(KeyedStoreSloppyArguments) \ |
| 120 V(StoreField) \ | 123 V(StoreField) \ |
| 121 V(StoreGlobal) \ | 124 V(StoreGlobal) \ |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 }; | 697 }; |
| 695 | 698 |
| 696 class StringNotEqualStub final : public TurboFanCodeStub { | 699 class StringNotEqualStub final : public TurboFanCodeStub { |
| 697 public: | 700 public: |
| 698 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 701 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 699 | 702 |
| 700 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 703 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 701 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); | 704 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); |
| 702 }; | 705 }; |
| 703 | 706 |
| 707 class StringLessThanStub final : public TurboFanCodeStub { |
| 708 public: |
| 709 explicit StringLessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 710 |
| 711 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 712 DEFINE_TURBOFAN_CODE_STUB(StringLessThan, TurboFanCodeStub); |
| 713 }; |
| 714 |
| 715 class StringLessThanOrEqualStub final : public TurboFanCodeStub { |
| 716 public: |
| 717 explicit StringLessThanOrEqualStub(Isolate* isolate) |
| 718 : TurboFanCodeStub(isolate) {} |
| 719 |
| 720 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 721 DEFINE_TURBOFAN_CODE_STUB(StringLessThanOrEqual, TurboFanCodeStub); |
| 722 }; |
| 723 |
| 724 class StringGreaterThanStub final : public TurboFanCodeStub { |
| 725 public: |
| 726 explicit StringGreaterThanStub(Isolate* isolate) |
| 727 : TurboFanCodeStub(isolate) {} |
| 728 |
| 729 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 730 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThan, TurboFanCodeStub); |
| 731 }; |
| 732 |
| 733 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { |
| 734 public: |
| 735 explicit StringGreaterThanOrEqualStub(Isolate* isolate) |
| 736 : TurboFanCodeStub(isolate) {} |
| 737 |
| 738 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 739 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); |
| 740 }; |
| 741 |
| 704 class ToBooleanStub final : public TurboFanCodeStub { | 742 class ToBooleanStub final : public TurboFanCodeStub { |
| 705 public: | 743 public: |
| 706 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 744 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 707 | 745 |
| 708 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); | 746 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); |
| 709 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); | 747 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); |
| 710 }; | 748 }; |
| 711 | 749 |
| 712 enum StringAddFlags { | 750 enum StringAddFlags { |
| 713 // Omit both parameter checks. | 751 // Omit both parameter checks. |
| (...skipping 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2928 | 2966 |
| 2929 | 2967 |
| 2930 class ToObjectStub final : public HydrogenCodeStub { | 2968 class ToObjectStub final : public HydrogenCodeStub { |
| 2931 public: | 2969 public: |
| 2932 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 2970 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
| 2933 | 2971 |
| 2934 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); | 2972 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); |
| 2935 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); | 2973 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); |
| 2936 }; | 2974 }; |
| 2937 | 2975 |
| 2938 | |
| 2939 class StringCompareStub : public PlatformCodeStub { | |
| 2940 public: | |
| 2941 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
| 2942 | |
| 2943 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); | |
| 2944 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); | |
| 2945 }; | |
| 2946 | |
| 2947 | |
| 2948 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2976 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
| 2949 #undef DEFINE_PLATFORM_CODE_STUB | 2977 #undef DEFINE_PLATFORM_CODE_STUB |
| 2950 #undef DEFINE_HANDLER_CODE_STUB | 2978 #undef DEFINE_HANDLER_CODE_STUB |
| 2951 #undef DEFINE_HYDROGEN_CODE_STUB | 2979 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2952 #undef DEFINE_CODE_STUB | 2980 #undef DEFINE_CODE_STUB |
| 2953 #undef DEFINE_CODE_STUB_BASE | 2981 #undef DEFINE_CODE_STUB_BASE |
| 2954 | 2982 |
| 2955 extern Representation RepresentationFromType(Type* type); | 2983 extern Representation RepresentationFromType(Type* type); |
| 2956 | 2984 |
| 2957 } // namespace internal | 2985 } // namespace internal |
| 2958 } // namespace v8 | 2986 } // namespace v8 |
| 2959 | 2987 |
| 2960 #endif // V8_CODE_STUBS_H_ | 2988 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |