| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 V(AllocateBool16x8) \ | 109 V(AllocateBool16x8) \ |
| 110 V(AllocateInt8x16) \ | 110 V(AllocateInt8x16) \ |
| 111 V(AllocateUint8x16) \ | 111 V(AllocateUint8x16) \ |
| 112 V(AllocateBool8x16) \ | 112 V(AllocateBool8x16) \ |
| 113 V(StringLength) \ | 113 V(StringLength) \ |
| 114 V(Add) \ | 114 V(Add) \ |
| 115 V(Subtract) \ | 115 V(Subtract) \ |
| 116 V(Multiply) \ | 116 V(Multiply) \ |
| 117 V(Divide) \ | 117 V(Divide) \ |
| 118 V(Modulus) \ | 118 V(Modulus) \ |
| 119 V(ShiftRight) \ | |
| 120 V(ShiftRightLogical) \ | |
| 121 V(ShiftLeft) \ | |
| 122 V(BitwiseAnd) \ | 119 V(BitwiseAnd) \ |
| 123 V(BitwiseOr) \ | 120 V(BitwiseOr) \ |
| 124 V(BitwiseXor) \ | 121 V(BitwiseXor) \ |
| 125 V(LessThan) \ | 122 V(LessThan) \ |
| 126 V(LessThanOrEqual) \ | 123 V(LessThanOrEqual) \ |
| 127 V(GreaterThan) \ | 124 V(GreaterThan) \ |
| 128 V(GreaterThanOrEqual) \ | 125 V(GreaterThanOrEqual) \ |
| 129 V(Equal) \ | 126 V(Equal) \ |
| 130 V(NotEqual) \ | 127 V(NotEqual) \ |
| 131 V(StrictEqual) \ | 128 V(StrictEqual) \ |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 }; | 707 }; |
| 711 | 708 |
| 712 class ModulusStub final : public TurboFanCodeStub { | 709 class ModulusStub final : public TurboFanCodeStub { |
| 713 public: | 710 public: |
| 714 explicit ModulusStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 711 explicit ModulusStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 715 | 712 |
| 716 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | 713 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 717 DEFINE_TURBOFAN_CODE_STUB(Modulus, TurboFanCodeStub); | 714 DEFINE_TURBOFAN_CODE_STUB(Modulus, TurboFanCodeStub); |
| 718 }; | 715 }; |
| 719 | 716 |
| 720 class ShiftRightStub final : public TurboFanCodeStub { | |
| 721 public: | |
| 722 explicit ShiftRightStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
| 723 | |
| 724 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | |
| 725 DEFINE_TURBOFAN_CODE_STUB(ShiftRight, TurboFanCodeStub); | |
| 726 }; | |
| 727 | |
| 728 class ShiftRightLogicalStub final : public TurboFanCodeStub { | |
| 729 public: | |
| 730 explicit ShiftRightLogicalStub(Isolate* isolate) | |
| 731 : TurboFanCodeStub(isolate) {} | |
| 732 | |
| 733 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | |
| 734 DEFINE_TURBOFAN_CODE_STUB(ShiftRightLogical, TurboFanCodeStub); | |
| 735 }; | |
| 736 | |
| 737 class ShiftLeftStub final : public TurboFanCodeStub { | |
| 738 public: | |
| 739 explicit ShiftLeftStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
| 740 | |
| 741 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | |
| 742 DEFINE_TURBOFAN_CODE_STUB(ShiftLeft, TurboFanCodeStub); | |
| 743 }; | |
| 744 | |
| 745 class BitwiseAndStub final : public TurboFanCodeStub { | 717 class BitwiseAndStub final : public TurboFanCodeStub { |
| 746 public: | 718 public: |
| 747 explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 719 explicit BitwiseAndStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 748 | 720 |
| 749 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); | 721 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 750 DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub); | 722 DEFINE_TURBOFAN_CODE_STUB(BitwiseAnd, TurboFanCodeStub); |
| 751 }; | 723 }; |
| 752 | 724 |
| 753 class BitwiseOrStub final : public TurboFanCodeStub { | 725 class BitwiseOrStub final : public TurboFanCodeStub { |
| 754 public: | 726 public: |
| (...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3164 #undef DEFINE_HYDROGEN_CODE_STUB | 3136 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3165 #undef DEFINE_CODE_STUB | 3137 #undef DEFINE_CODE_STUB |
| 3166 #undef DEFINE_CODE_STUB_BASE | 3138 #undef DEFINE_CODE_STUB_BASE |
| 3167 | 3139 |
| 3168 extern Representation RepresentationFromType(Type* type); | 3140 extern Representation RepresentationFromType(Type* type); |
| 3169 | 3141 |
| 3170 } // namespace internal | 3142 } // namespace internal |
| 3171 } // namespace v8 | 3143 } // namespace v8 |
| 3172 | 3144 |
| 3173 #endif // V8_CODE_STUBS_H_ | 3145 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |