| 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/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 V(GreaterThan) \ | 141 V(GreaterThan) \ |
| 142 V(GreaterThanOrEqual) \ | 142 V(GreaterThanOrEqual) \ |
| 143 V(Equal) \ | 143 V(Equal) \ |
| 144 V(NotEqual) \ | 144 V(NotEqual) \ |
| 145 V(KeyedLoadSloppyArguments) \ | 145 V(KeyedLoadSloppyArguments) \ |
| 146 V(KeyedStoreSloppyArguments) \ | 146 V(KeyedStoreSloppyArguments) \ |
| 147 V(LoadScriptContextField) \ | 147 V(LoadScriptContextField) \ |
| 148 V(StoreScriptContextField) \ | 148 V(StoreScriptContextField) \ |
| 149 V(StrictEqual) \ | 149 V(StrictEqual) \ |
| 150 V(StrictNotEqual) \ | 150 V(StrictNotEqual) \ |
| 151 V(StringEqual) \ | |
| 152 V(StringNotEqual) \ | |
| 153 V(StringLessThan) \ | |
| 154 V(StringLessThanOrEqual) \ | |
| 155 V(StringGreaterThan) \ | |
| 156 V(StringGreaterThanOrEqual) \ | |
| 157 V(ToInteger) \ | 151 V(ToInteger) \ |
| 158 V(ToLength) \ | 152 V(ToLength) \ |
| 159 V(HasProperty) \ | 153 V(HasProperty) \ |
| 160 V(ForInFilter) \ | 154 V(ForInFilter) \ |
| 161 V(GetProperty) \ | 155 V(GetProperty) \ |
| 162 V(LoadICTF) \ | 156 V(LoadICTF) \ |
| 163 V(KeyedLoadICTF) \ | 157 V(KeyedLoadICTF) \ |
| 164 V(StoreFastElement) \ | 158 V(StoreFastElement) \ |
| 165 V(StoreField) \ | 159 V(StoreField) \ |
| 166 V(StoreGlobal) \ | 160 V(StoreGlobal) \ |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 }; | 975 }; |
| 982 | 976 |
| 983 class StrictNotEqualStub final : public TurboFanCodeStub { | 977 class StrictNotEqualStub final : public TurboFanCodeStub { |
| 984 public: | 978 public: |
| 985 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 979 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 986 | 980 |
| 987 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 981 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 988 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub); | 982 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub); |
| 989 }; | 983 }; |
| 990 | 984 |
| 991 class StringEqualStub final : public TurboFanCodeStub { | |
| 992 public: | |
| 993 explicit StringEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
| 994 | |
| 995 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 996 DEFINE_TURBOFAN_CODE_STUB(StringEqual, TurboFanCodeStub); | |
| 997 }; | |
| 998 | |
| 999 class StringNotEqualStub final : public TurboFanCodeStub { | |
| 1000 public: | |
| 1001 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
| 1002 | |
| 1003 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 1004 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); | |
| 1005 }; | |
| 1006 | |
| 1007 class StringLessThanStub final : public TurboFanCodeStub { | |
| 1008 public: | |
| 1009 explicit StringLessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
| 1010 | |
| 1011 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 1012 DEFINE_TURBOFAN_CODE_STUB(StringLessThan, TurboFanCodeStub); | |
| 1013 }; | |
| 1014 | |
| 1015 class StringLessThanOrEqualStub final : public TurboFanCodeStub { | |
| 1016 public: | |
| 1017 explicit StringLessThanOrEqualStub(Isolate* isolate) | |
| 1018 : TurboFanCodeStub(isolate) {} | |
| 1019 | |
| 1020 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 1021 DEFINE_TURBOFAN_CODE_STUB(StringLessThanOrEqual, TurboFanCodeStub); | |
| 1022 }; | |
| 1023 | |
| 1024 class StringGreaterThanStub final : public TurboFanCodeStub { | |
| 1025 public: | |
| 1026 explicit StringGreaterThanStub(Isolate* isolate) | |
| 1027 : TurboFanCodeStub(isolate) {} | |
| 1028 | |
| 1029 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 1030 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThan, TurboFanCodeStub); | |
| 1031 }; | |
| 1032 | |
| 1033 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { | |
| 1034 public: | |
| 1035 explicit StringGreaterThanOrEqualStub(Isolate* isolate) | |
| 1036 : TurboFanCodeStub(isolate) {} | |
| 1037 | |
| 1038 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
| 1039 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); | |
| 1040 }; | |
| 1041 | |
| 1042 class ToIntegerStub final : public TurboFanCodeStub { | 985 class ToIntegerStub final : public TurboFanCodeStub { |
| 1043 public: | 986 public: |
| 1044 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 987 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 1045 | 988 |
| 1046 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 989 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 1047 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); | 990 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); |
| 1048 }; | 991 }; |
| 1049 | 992 |
| 1050 class ToLengthStub final : public TurboFanCodeStub { | 993 class ToLengthStub final : public TurboFanCodeStub { |
| 1051 public: | 994 public: |
| (...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3154 #undef DEFINE_HYDROGEN_CODE_STUB | 3097 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3155 #undef DEFINE_CODE_STUB | 3098 #undef DEFINE_CODE_STUB |
| 3156 #undef DEFINE_CODE_STUB_BASE | 3099 #undef DEFINE_CODE_STUB_BASE |
| 3157 | 3100 |
| 3158 extern Representation RepresentationFromMachineType(MachineType type); | 3101 extern Representation RepresentationFromMachineType(MachineType type); |
| 3159 | 3102 |
| 3160 } // namespace internal | 3103 } // namespace internal |
| 3161 } // namespace v8 | 3104 } // namespace v8 |
| 3162 | 3105 |
| 3163 #endif // V8_CODE_STUBS_H_ | 3106 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |