| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 V(KeyedLoadIC) \ | 96 V(KeyedLoadIC) \ |
| 97 V(LoadIC) \ | 97 V(LoadIC) \ |
| 98 /* TurboFanCodeStubs */ \ | 98 /* TurboFanCodeStubs */ \ |
| 99 V(AllocateHeapNumber) \ | 99 V(AllocateHeapNumber) \ |
| 100 V(AllocateMutableHeapNumber) \ | 100 V(AllocateMutableHeapNumber) \ |
| 101 V(StringLength) \ | 101 V(StringLength) \ |
| 102 V(LessThan) \ | 102 V(LessThan) \ |
| 103 V(LessThanOrEqual) \ | 103 V(LessThanOrEqual) \ |
| 104 V(GreaterThan) \ | 104 V(GreaterThan) \ |
| 105 V(GreaterThanOrEqual) \ | 105 V(GreaterThanOrEqual) \ |
| 106 V(Equal) \ |
| 107 V(NotEqual) \ |
| 106 V(StrictEqual) \ | 108 V(StrictEqual) \ |
| 107 V(StrictNotEqual) \ | 109 V(StrictNotEqual) \ |
| 108 V(StringEqual) \ | 110 V(StringEqual) \ |
| 109 V(StringNotEqual) \ | 111 V(StringNotEqual) \ |
| 110 V(StringLessThan) \ | 112 V(StringLessThan) \ |
| 111 V(StringLessThanOrEqual) \ | 113 V(StringLessThanOrEqual) \ |
| 112 V(StringGreaterThan) \ | 114 V(StringGreaterThan) \ |
| 113 V(StringGreaterThanOrEqual) \ | 115 V(StringGreaterThanOrEqual) \ |
| 114 V(ToBoolean) \ | 116 V(ToBoolean) \ |
| 115 /* IC Handler stubs */ \ | 117 /* IC Handler stubs */ \ |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 | 666 |
| 665 class GreaterThanOrEqualStub final : public TurboFanCodeStub { | 667 class GreaterThanOrEqualStub final : public TurboFanCodeStub { |
| 666 public: | 668 public: |
| 667 explicit GreaterThanOrEqualStub(Isolate* isolate) | 669 explicit GreaterThanOrEqualStub(Isolate* isolate) |
| 668 : TurboFanCodeStub(isolate) {} | 670 : TurboFanCodeStub(isolate) {} |
| 669 | 671 |
| 670 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 672 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 671 DEFINE_TURBOFAN_CODE_STUB(GreaterThanOrEqual, TurboFanCodeStub); | 673 DEFINE_TURBOFAN_CODE_STUB(GreaterThanOrEqual, TurboFanCodeStub); |
| 672 }; | 674 }; |
| 673 | 675 |
| 676 class EqualStub final : public TurboFanCodeStub { |
| 677 public: |
| 678 explicit EqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 679 |
| 680 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 681 DEFINE_TURBOFAN_CODE_STUB(Equal, TurboFanCodeStub); |
| 682 }; |
| 683 |
| 684 class NotEqualStub final : public TurboFanCodeStub { |
| 685 public: |
| 686 explicit NotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 687 |
| 688 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 689 DEFINE_TURBOFAN_CODE_STUB(NotEqual, TurboFanCodeStub); |
| 690 }; |
| 691 |
| 674 class StrictEqualStub final : public TurboFanCodeStub { | 692 class StrictEqualStub final : public TurboFanCodeStub { |
| 675 public: | 693 public: |
| 676 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 694 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 677 | 695 |
| 678 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 696 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 679 DEFINE_TURBOFAN_CODE_STUB(StrictEqual, TurboFanCodeStub); | 697 DEFINE_TURBOFAN_CODE_STUB(StrictEqual, TurboFanCodeStub); |
| 680 }; | 698 }; |
| 681 | 699 |
| 682 class StrictNotEqualStub final : public TurboFanCodeStub { | 700 class StrictNotEqualStub final : public TurboFanCodeStub { |
| 683 public: | 701 public: |
| (...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2947 #undef DEFINE_HYDROGEN_CODE_STUB | 2965 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2948 #undef DEFINE_CODE_STUB | 2966 #undef DEFINE_CODE_STUB |
| 2949 #undef DEFINE_CODE_STUB_BASE | 2967 #undef DEFINE_CODE_STUB_BASE |
| 2950 | 2968 |
| 2951 extern Representation RepresentationFromType(Type* type); | 2969 extern Representation RepresentationFromType(Type* type); |
| 2952 | 2970 |
| 2953 } // namespace internal | 2971 } // namespace internal |
| 2954 } // namespace v8 | 2972 } // namespace v8 |
| 2955 | 2973 |
| 2956 #endif // V8_CODE_STUBS_H_ | 2974 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |