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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 V(StoreFastElement) \ | 94 V(StoreFastElement) \ |
95 V(StoreGlobalViaContext) \ | 95 V(StoreGlobalViaContext) \ |
96 V(StoreScriptContextField) \ | 96 V(StoreScriptContextField) \ |
97 V(StringAdd) \ | 97 V(StringAdd) \ |
98 V(ToBooleanIC) \ | 98 V(ToBooleanIC) \ |
99 V(TransitionElementsKind) \ | 99 V(TransitionElementsKind) \ |
100 V(KeyedLoadIC) \ | 100 V(KeyedLoadIC) \ |
101 V(LoadIC) \ | 101 V(LoadIC) \ |
102 /* TurboFanCodeStubs */ \ | 102 /* TurboFanCodeStubs */ \ |
103 V(StringLength) \ | 103 V(StringLength) \ |
| 104 V(StrictEqual) \ |
104 V(ToBoolean) \ | 105 V(ToBoolean) \ |
105 /* IC Handler stubs */ \ | 106 /* IC Handler stubs */ \ |
106 V(ArrayBufferViewLoadField) \ | 107 V(ArrayBufferViewLoadField) \ |
107 V(LoadConstant) \ | 108 V(LoadConstant) \ |
108 V(LoadFastElement) \ | 109 V(LoadFastElement) \ |
109 V(LoadField) \ | 110 V(LoadField) \ |
110 V(KeyedLoadSloppyArguments) \ | 111 V(KeyedLoadSloppyArguments) \ |
111 V(KeyedStoreSloppyArguments) \ | 112 V(KeyedStoreSloppyArguments) \ |
112 V(StoreField) \ | 113 V(StoreField) \ |
113 V(StoreGlobal) \ | 114 V(StoreGlobal) \ |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 Code::Kind GetCodeKind() const override { return Code::HANDLER; } | 625 Code::Kind GetCodeKind() const override { return Code::HANDLER; } |
625 InlineCacheState GetICState() const override { return MONOMORPHIC; } | 626 InlineCacheState GetICState() const override { return MONOMORPHIC; } |
626 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; } | 627 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; } |
627 | 628 |
628 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const override; | 629 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const override; |
629 | 630 |
630 DEFINE_CALL_INTERFACE_DESCRIPTOR(LoadWithVector); | 631 DEFINE_CALL_INTERFACE_DESCRIPTOR(LoadWithVector); |
631 DEFINE_CODE_STUB(StringLength, TurboFanCodeStub); | 632 DEFINE_CODE_STUB(StringLength, TurboFanCodeStub); |
632 }; | 633 }; |
633 | 634 |
| 635 class StrictEqualStub final : public TurboFanCodeStub { |
| 636 public: |
| 637 explicit StrictEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 638 |
| 639 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
| 640 |
| 641 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
| 642 DEFINE_CODE_STUB(StrictEqual, TurboFanCodeStub); |
| 643 }; |
| 644 |
634 class ToBooleanStub final : public TurboFanCodeStub { | 645 class ToBooleanStub final : public TurboFanCodeStub { |
635 public: | 646 public: |
636 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 647 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
637 | 648 |
638 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; | 649 void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final; |
639 | 650 |
640 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); | 651 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToBoolean); |
641 DEFINE_CODE_STUB(ToBoolean, TurboFanCodeStub); | 652 DEFINE_CODE_STUB(ToBoolean, TurboFanCodeStub); |
642 }; | 653 }; |
643 | 654 |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2881 #undef DEFINE_HYDROGEN_CODE_STUB | 2892 #undef DEFINE_HYDROGEN_CODE_STUB |
2882 #undef DEFINE_CODE_STUB | 2893 #undef DEFINE_CODE_STUB |
2883 #undef DEFINE_CODE_STUB_BASE | 2894 #undef DEFINE_CODE_STUB_BASE |
2884 | 2895 |
2885 extern Representation RepresentationFromType(Type* type); | 2896 extern Representation RepresentationFromType(Type* type); |
2886 | 2897 |
2887 } // namespace internal | 2898 } // namespace internal |
2888 } // namespace v8 | 2899 } // namespace v8 |
2889 | 2900 |
2890 #endif // V8_CODE_STUBS_H_ | 2901 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |