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...) Loading... |
96 V(ToBooleanIC) \ | 96 V(ToBooleanIC) \ |
97 V(TransitionElementsKind) \ | 97 V(TransitionElementsKind) \ |
98 V(KeyedLoadIC) \ | 98 V(KeyedLoadIC) \ |
99 V(LoadIC) \ | 99 V(LoadIC) \ |
100 /* TurboFanCodeStubs */ \ | 100 /* TurboFanCodeStubs */ \ |
101 V(AllocateHeapNumber) \ | 101 V(AllocateHeapNumber) \ |
102 V(AllocateMutableHeapNumber) \ | 102 V(AllocateMutableHeapNumber) \ |
103 V(StringLength) \ | 103 V(StringLength) \ |
104 V(StrictEqual) \ | 104 V(StrictEqual) \ |
105 V(StrictNotEqual) \ | 105 V(StrictNotEqual) \ |
| 106 V(StringEqual) \ |
| 107 V(StringNotEqual) \ |
106 V(ToBoolean) \ | 108 V(ToBoolean) \ |
107 /* IC Handler stubs */ \ | 109 /* IC Handler stubs */ \ |
108 V(ArrayBufferViewLoadField) \ | 110 V(ArrayBufferViewLoadField) \ |
109 V(LoadConstant) \ | 111 V(LoadConstant) \ |
110 V(LoadFastElement) \ | 112 V(LoadFastElement) \ |
111 V(LoadField) \ | 113 V(LoadField) \ |
112 V(KeyedLoadSloppyArguments) \ | 114 V(KeyedLoadSloppyArguments) \ |
113 V(KeyedStoreSloppyArguments) \ | 115 V(KeyedStoreSloppyArguments) \ |
114 V(StoreField) \ | 116 V(StoreField) \ |
115 V(StoreGlobal) \ | 117 V(StoreGlobal) \ |
(...skipping 530 matching lines...) Loading... |
646 class StrictNotEqualStub final : public TurboFanCodeStub { | 648 class StrictNotEqualStub final : public TurboFanCodeStub { |
647 public: | 649 public: |
648 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 650 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
649 | 651 |
650 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; | 652 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
651 | 653 |
652 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 654 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
653 DEFINE_CODE_STUB(StrictNotEqual, TurboFanCodeStub); | 655 DEFINE_CODE_STUB(StrictNotEqual, TurboFanCodeStub); |
654 }; | 656 }; |
655 | 657 |
| 658 class StringEqualStub final : public TurboFanCodeStub { |
| 659 public: |
| 660 explicit StringEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 661 |
| 662 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
| 663 |
| 664 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 665 DEFINE_CODE_STUB(StringEqual, TurboFanCodeStub); |
| 666 }; |
| 667 |
| 668 class StringNotEqualStub final : public TurboFanCodeStub { |
| 669 public: |
| 670 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 671 |
| 672 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
| 673 |
| 674 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 675 DEFINE_CODE_STUB(StringNotEqual, TurboFanCodeStub); |
| 676 }; |
| 677 |
656 class ToBooleanStub final : public TurboFanCodeStub { | 678 class ToBooleanStub final : public TurboFanCodeStub { |
657 public: | 679 public: |
658 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 680 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
659 | 681 |
660 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; | 682 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
661 | 683 |
662 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); | 684 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); |
663 DEFINE_CODE_STUB(ToBoolean, TurboFanCodeStub); | 685 DEFINE_CODE_STUB(ToBoolean, TurboFanCodeStub); |
664 }; | 686 }; |
665 | 687 |
(...skipping 2239 matching lines...) Loading... |
2905 #undef DEFINE_HYDROGEN_CODE_STUB | 2927 #undef DEFINE_HYDROGEN_CODE_STUB |
2906 #undef DEFINE_CODE_STUB | 2928 #undef DEFINE_CODE_STUB |
2907 #undef DEFINE_CODE_STUB_BASE | 2929 #undef DEFINE_CODE_STUB_BASE |
2908 | 2930 |
2909 extern Representation RepresentationFromType(Type* type); | 2931 extern Representation RepresentationFromType(Type* type); |
2910 | 2932 |
2911 } // namespace internal | 2933 } // namespace internal |
2912 } // namespace v8 | 2934 } // namespace v8 |
2913 | 2935 |
2914 #endif // V8_CODE_STUBS_H_ | 2936 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |