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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 V(AllocateInt32x4) \ | 104 V(AllocateInt32x4) \ |
105 V(AllocateUint32x4) \ | 105 V(AllocateUint32x4) \ |
106 V(AllocateBool32x4) \ | 106 V(AllocateBool32x4) \ |
107 V(AllocateInt16x8) \ | 107 V(AllocateInt16x8) \ |
108 V(AllocateUint16x8) \ | 108 V(AllocateUint16x8) \ |
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) \ |
| 115 V(Subtract) \ |
114 V(LessThan) \ | 116 V(LessThan) \ |
115 V(LessThanOrEqual) \ | 117 V(LessThanOrEqual) \ |
116 V(GreaterThan) \ | 118 V(GreaterThan) \ |
117 V(GreaterThanOrEqual) \ | 119 V(GreaterThanOrEqual) \ |
118 V(Equal) \ | 120 V(Equal) \ |
119 V(NotEqual) \ | 121 V(NotEqual) \ |
120 V(StrictEqual) \ | 122 V(StrictEqual) \ |
121 V(StrictNotEqual) \ | 123 V(StrictNotEqual) \ |
122 V(StringEqual) \ | 124 V(StringEqual) \ |
123 V(StringNotEqual) \ | 125 V(StringNotEqual) \ |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 explicit StringLengthStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 662 explicit StringLengthStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
661 | 663 |
662 Code::Kind GetCodeKind() const override { return Code::HANDLER; } | 664 Code::Kind GetCodeKind() const override { return Code::HANDLER; } |
663 InlineCacheState GetICState() const override { return MONOMORPHIC; } | 665 InlineCacheState GetICState() const override { return MONOMORPHIC; } |
664 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; } | 666 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; } |
665 | 667 |
666 DEFINE_CALL_INTERFACE_DESCRIPTOR(LoadWithVector); | 668 DEFINE_CALL_INTERFACE_DESCRIPTOR(LoadWithVector); |
667 DEFINE_TURBOFAN_CODE_STUB(StringLength, TurboFanCodeStub); | 669 DEFINE_TURBOFAN_CODE_STUB(StringLength, TurboFanCodeStub); |
668 }; | 670 }; |
669 | 671 |
| 672 class AddStub final : public TurboFanCodeStub { |
| 673 public: |
| 674 explicit AddStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 675 |
| 676 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 677 DEFINE_TURBOFAN_CODE_STUB(Add, TurboFanCodeStub); |
| 678 }; |
| 679 |
| 680 class SubtractStub final : public TurboFanCodeStub { |
| 681 public: |
| 682 explicit SubtractStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 683 |
| 684 DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOp); |
| 685 DEFINE_TURBOFAN_CODE_STUB(Subtract, TurboFanCodeStub); |
| 686 }; |
| 687 |
670 class LessThanStub final : public TurboFanCodeStub { | 688 class LessThanStub final : public TurboFanCodeStub { |
671 public: | 689 public: |
672 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 690 explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
673 | 691 |
674 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 692 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
675 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); | 693 DEFINE_TURBOFAN_CODE_STUB(LessThan, TurboFanCodeStub); |
676 }; | 694 }; |
677 | 695 |
678 class LessThanOrEqualStub final : public TurboFanCodeStub { | 696 class LessThanOrEqualStub final : public TurboFanCodeStub { |
679 public: | 697 public: |
(...skipping 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3049 #undef DEFINE_HYDROGEN_CODE_STUB | 3067 #undef DEFINE_HYDROGEN_CODE_STUB |
3050 #undef DEFINE_CODE_STUB | 3068 #undef DEFINE_CODE_STUB |
3051 #undef DEFINE_CODE_STUB_BASE | 3069 #undef DEFINE_CODE_STUB_BASE |
3052 | 3070 |
3053 extern Representation RepresentationFromType(Type* type); | 3071 extern Representation RepresentationFromType(Type* type); |
3054 | 3072 |
3055 } // namespace internal | 3073 } // namespace internal |
3056 } // namespace v8 | 3074 } // namespace v8 |
3057 | 3075 |
3058 #endif // V8_CODE_STUBS_H_ | 3076 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |