| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 | 679 |
| 678 class GreaterThanOrEqualStub final : public TurboFanCodeStub { | 680 class GreaterThanOrEqualStub final : public TurboFanCodeStub { |
| 679 public: | 681 public: |
| 680 explicit GreaterThanOrEqualStub(Isolate* isolate) | 682 explicit GreaterThanOrEqualStub(Isolate* isolate) |
| 681 : TurboFanCodeStub(isolate) {} | 683 : TurboFanCodeStub(isolate) {} |
| 682 | 684 |
| 683 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 685 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 684 DEFINE_TURBOFAN_CODE_STUB(GreaterThanOrEqual, TurboFanCodeStub); | 686 DEFINE_TURBOFAN_CODE_STUB(GreaterThanOrEqual, TurboFanCodeStub); |
| 685 }; | 687 }; |
| 686 | 688 |
| 689 class EqualStub final : public TurboFanCodeStub { |
| 690 public: |
| 691 explicit EqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 692 |
| 693 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 694 DEFINE_TURBOFAN_CODE_STUB(Equal, TurboFanCodeStub); |
| 695 }; |
| 696 |
| 697 class NotEqualStub final : public TurboFanCodeStub { |
| 698 public: |
| 699 explicit NotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 700 |
| 701 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 702 DEFINE_TURBOFAN_CODE_STUB(NotEqual, TurboFanCodeStub); |
| 703 }; |
| 704 |
| 687 class StrictEqualStub final : public TurboFanCodeStub { | 705 class StrictEqualStub final : public TurboFanCodeStub { |
| 688 public: | 706 public: |
| 689 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 707 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 690 | 708 |
| 691 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 709 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 692 DEFINE_TURBOFAN_CODE_STUB(StrictEqual, TurboFanCodeStub); | 710 DEFINE_TURBOFAN_CODE_STUB(StrictEqual, TurboFanCodeStub); |
| 693 }; | 711 }; |
| 694 | 712 |
| 695 class StrictNotEqualStub final : public TurboFanCodeStub { | 713 class StrictNotEqualStub final : public TurboFanCodeStub { |
| 696 public: | 714 public: |
| (...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2960 #undef DEFINE_HYDROGEN_CODE_STUB | 2978 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2961 #undef DEFINE_CODE_STUB | 2979 #undef DEFINE_CODE_STUB |
| 2962 #undef DEFINE_CODE_STUB_BASE | 2980 #undef DEFINE_CODE_STUB_BASE |
| 2963 | 2981 |
| 2964 extern Representation RepresentationFromType(Type* type); | 2982 extern Representation RepresentationFromType(Type* type); |
| 2965 | 2983 |
| 2966 } // namespace internal | 2984 } // namespace internal |
| 2967 } // namespace v8 | 2985 } // namespace v8 |
| 2968 | 2986 |
| 2969 #endif // V8_CODE_STUBS_H_ | 2987 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |