| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 V(Subtract) \ | 113 V(Subtract) \ |
| 114 V(Multiply) \ | 114 V(Multiply) \ |
| 115 V(Divide) \ | 115 V(Divide) \ |
| 116 V(Modulus) \ | 116 V(Modulus) \ |
| 117 V(ShiftRight) \ | 117 V(ShiftRight) \ |
| 118 V(ShiftRightLogical) \ | 118 V(ShiftRightLogical) \ |
| 119 V(ShiftLeft) \ | 119 V(ShiftLeft) \ |
| 120 V(BitwiseAnd) \ | 120 V(BitwiseAnd) \ |
| 121 V(BitwiseOr) \ | 121 V(BitwiseOr) \ |
| 122 V(BitwiseXor) \ | 122 V(BitwiseXor) \ |
| 123 V(Inc) \ |
| 124 V(Dec) \ |
| 123 V(FastCloneShallowObject) \ | 125 V(FastCloneShallowObject) \ |
| 124 V(LessThan) \ | 126 V(LessThan) \ |
| 125 V(LessThanOrEqual) \ | 127 V(LessThanOrEqual) \ |
| 126 V(GreaterThan) \ | 128 V(GreaterThan) \ |
| 127 V(GreaterThanOrEqual) \ | 129 V(GreaterThanOrEqual) \ |
| 128 V(Equal) \ | 130 V(Equal) \ |
| 129 V(NotEqual) \ | 131 V(NotEqual) \ |
| 130 V(StrictEqual) \ | 132 V(StrictEqual) \ |
| 131 V(StrictNotEqual) \ | 133 V(StrictNotEqual) \ |
| 132 V(StringEqual) \ | 134 V(StringEqual) \ |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 }; | 758 }; |
| 757 | 759 |
| 758 class BitwiseXorStub final : public TurboFanCodeStub { | 760 class BitwiseXorStub final : public TurboFanCodeStub { |
| 759 public: | 761 public: |
| 760 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 762 explicit BitwiseXorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 761 | 763 |
| 762 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | 764 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 763 DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub); | 765 DEFINE_TURBOFAN_CODE_STUB(BitwiseXor, TurboFanCodeStub); |
| 764 }; | 766 }; |
| 765 | 767 |
| 768 class IncStub final : public TurboFanCodeStub { |
| 769 public: |
| 770 explicit IncStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 771 |
| 772 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp); |
| 773 DEFINE_TURBOFAN_CODE_STUB(Inc, TurboFanCodeStub); |
| 774 }; |
| 775 |
| 776 class DecStub final : public TurboFanCodeStub { |
| 777 public: |
| 778 explicit DecStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 779 |
| 780 DEFINE_CALL_INTERFACE_DESCRIPTOR(CountOp); |
| 781 DEFINE_TURBOFAN_CODE_STUB(Dec, TurboFanCodeStub); |
| 782 }; |
| 783 |
| 766 class LessThanStub final : public TurboFanCodeStub { | 784 class LessThanStub final : public TurboFanCodeStub { |
| 767 public: | 785 public: |
| 768 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 786 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 769 | 787 |
| 770 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 788 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 771 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); | 789 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); |
| 772 }; | 790 }; |
| 773 | 791 |
| 774 class LessThanOrEqualStub final : public TurboFanCodeStub { | 792 class LessThanOrEqualStub final : public TurboFanCodeStub { |
| 775 public: | 793 public: |
| (...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3151 #undef DEFINE_HYDROGEN_CODE_STUB | 3169 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3152 #undef DEFINE_CODE_STUB | 3170 #undef DEFINE_CODE_STUB |
| 3153 #undef DEFINE_CODE_STUB_BASE | 3171 #undef DEFINE_CODE_STUB_BASE |
| 3154 | 3172 |
| 3155 extern Representation RepresentationFromType(Type* type); | 3173 extern Representation RepresentationFromType(Type* type); |
| 3156 | 3174 |
| 3157 } // namespace internal | 3175 } // namespace internal |
| 3158 } // namespace v8 | 3176 } // namespace v8 |
| 3159 | 3177 |
| 3160 #endif // V8_CODE_STUBS_H_ | 3178 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |