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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 V(AllocateBool16x8) \ | 108 V(AllocateBool16x8) \ |
109 V(AllocateInt8x16) \ | 109 V(AllocateInt8x16) \ |
110 V(AllocateUint8x16) \ | 110 V(AllocateUint8x16) \ |
111 V(AllocateBool8x16) \ | 111 V(AllocateBool8x16) \ |
112 V(StringLength) \ | 112 V(StringLength) \ |
113 V(Add) \ | 113 V(Add) \ |
114 V(Subtract) \ | 114 V(Subtract) \ |
115 V(Multiply) \ | 115 V(Multiply) \ |
116 V(Divide) \ | 116 V(Divide) \ |
117 V(Modulus) \ | 117 V(Modulus) \ |
| 118 V(SignedRightShift) \ |
| 119 V(UnsignedRightShift) \ |
| 120 V(LeftShift) \ |
118 V(BitwiseAnd) \ | 121 V(BitwiseAnd) \ |
119 V(BitwiseOr) \ | 122 V(BitwiseOr) \ |
120 V(BitwiseXor) \ | 123 V(BitwiseXor) \ |
121 V(LessThan) \ | 124 V(LessThan) \ |
122 V(LessThanOrEqual) \ | 125 V(LessThanOrEqual) \ |
123 V(GreaterThan) \ | 126 V(GreaterThan) \ |
124 V(GreaterThanOrEqual) \ | 127 V(GreaterThanOrEqual) \ |
125 V(Equal) \ | 128 V(Equal) \ |
126 V(NotEqual) \ | 129 V(NotEqual) \ |
127 V(StrictEqual) \ | 130 V(StrictEqual) \ |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 }; | 709 }; |
707 | 710 |
708 class ModulusStub final : public TurboFanCodeStub { | 711 class ModulusStub final : public TurboFanCodeStub { |
709 public: | 712 public: |
710 explicit ModulusStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 713 explicit ModulusStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
711 | 714 |
712 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | 715 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
713 DEFINE_TURBOFAN_CODE_STUB(Modulus, TurboFanCodeStub); | 716 DEFINE_TURBOFAN_CODE_STUB(Modulus, TurboFanCodeStub); |
714 }; | 717 }; |
715 | 718 |
| 719 class SignedRightShiftStub final : public TurboFanCodeStub { |
| 720 public: |
| 721 explicit SignedRightShiftStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 722 |
| 723 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 724 DEFINE_TURBOFAN_CODE_STUB(SignedRightShift, TurboFanCodeStub); |
| 725 }; |
| 726 |
| 727 class UnsignedRightShiftStub final : public TurboFanCodeStub { |
| 728 public: |
| 729 explicit UnsignedRightShiftStub(Isolate* isolate) |
| 730 : TurboFanCodeStub(isolate) {} |
| 731 |
| 732 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 733 DEFINE_TURBOFAN_CODE_STUB(UnsignedRightShift, TurboFanCodeStub); |
| 734 }; |
| 735 |
| 736 class LeftShiftStub final : public TurboFanCodeStub { |
| 737 public: |
| 738 explicit LeftShiftStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 739 |
| 740 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 741 DEFINE_TURBOFAN_CODE_STUB(LeftShift, TurboFanCodeStub); |
| 742 }; |
| 743 |
716 class BitwiseAndStub final : public TurboFanCodeStub { | 744 class BitwiseAndStub final : public TurboFanCodeStub { |
717 public: | 745 public: |
718 explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 746 explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
719 | 747 |
720 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | 748 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
721 DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub); | 749 DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub); |
722 }; | 750 }; |
723 | 751 |
724 class BitwiseOrStub final : public TurboFanCodeStub { | 752 class BitwiseOrStub final : public TurboFanCodeStub { |
725 public: | 753 public: |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3121 #undef DEFINE_HYDROGEN_CODE_STUB | 3149 #undef DEFINE_HYDROGEN_CODE_STUB |
3122 #undef DEFINE_CODE_STUB | 3150 #undef DEFINE_CODE_STUB |
3123 #undef DEFINE_CODE_STUB_BASE | 3151 #undef DEFINE_CODE_STUB_BASE |
3124 | 3152 |
3125 extern Representation RepresentationFromType(Type* type); | 3153 extern Representation RepresentationFromType(Type* type); |
3126 | 3154 |
3127 } // namespace internal | 3155 } // namespace internal |
3128 } // namespace v8 | 3156 } // namespace v8 |
3129 | 3157 |
3130 #endif // V8_CODE_STUBS_H_ | 3158 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |