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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 V(ToNumber) \ | 56 V(ToNumber) \ |
57 /* HydrogenCodeStubs */ \ | 57 /* HydrogenCodeStubs */ \ |
58 V(AllocateHeapNumber) \ | 58 V(AllocateHeapNumber) \ |
59 V(ArrayNArgumentsConstructor) \ | 59 V(ArrayNArgumentsConstructor) \ |
60 V(ArrayNoArgumentConstructor) \ | 60 V(ArrayNoArgumentConstructor) \ |
61 V(ArraySingleArgumentConstructor) \ | 61 V(ArraySingleArgumentConstructor) \ |
62 V(BinaryOpIC) \ | 62 V(BinaryOpIC) \ |
63 V(BinaryOpWithAllocationSite) \ | 63 V(BinaryOpWithAllocationSite) \ |
64 V(CompareNilIC) \ | 64 V(CompareNilIC) \ |
65 V(CreateAllocationSite) \ | 65 V(CreateAllocationSite) \ |
| 66 V(CreateWeakCell) \ |
66 V(ElementsTransitionAndStore) \ | 67 V(ElementsTransitionAndStore) \ |
67 V(FastCloneShallowArray) \ | 68 V(FastCloneShallowArray) \ |
68 V(FastCloneShallowObject) \ | 69 V(FastCloneShallowObject) \ |
69 V(FastNewClosure) \ | 70 V(FastNewClosure) \ |
70 V(FastNewContext) \ | 71 V(FastNewContext) \ |
71 V(InternalArrayNArgumentsConstructor) \ | 72 V(InternalArrayNArgumentsConstructor) \ |
72 V(InternalArrayNoArgumentConstructor) \ | 73 V(InternalArrayNoArgumentConstructor) \ |
73 V(InternalArraySingleArgumentConstructor) \ | 74 V(InternalArraySingleArgumentConstructor) \ |
74 V(KeyedLoadGeneric) \ | 75 V(KeyedLoadGeneric) \ |
75 V(LoadScriptContextField) \ | 76 V(LoadScriptContextField) \ |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 explicit CreateAllocationSiteStub(Isolate* isolate) | 670 explicit CreateAllocationSiteStub(Isolate* isolate) |
670 : HydrogenCodeStub(isolate) { } | 671 : HydrogenCodeStub(isolate) { } |
671 | 672 |
672 static void GenerateAheadOfTime(Isolate* isolate); | 673 static void GenerateAheadOfTime(Isolate* isolate); |
673 | 674 |
674 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); | 675 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); |
675 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub); | 676 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub); |
676 }; | 677 }; |
677 | 678 |
678 | 679 |
| 680 class CreateWeakCellStub : public HydrogenCodeStub { |
| 681 public: |
| 682 explicit CreateWeakCellStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
| 683 |
| 684 static void GenerateAheadOfTime(Isolate* isolate); |
| 685 |
| 686 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell); |
| 687 DEFINE_HYDROGEN_CODE_STUB(CreateWeakCell, HydrogenCodeStub); |
| 688 }; |
| 689 |
| 690 |
679 class InstanceofStub: public PlatformCodeStub { | 691 class InstanceofStub: public PlatformCodeStub { |
680 public: | 692 public: |
681 enum Flags { | 693 enum Flags { |
682 kNoFlags = 0, | 694 kNoFlags = 0, |
683 kArgsInRegisters = 1 << 0, | 695 kArgsInRegisters = 1 << 0, |
684 kCallSiteInlineCheck = 1 << 1, | 696 kCallSiteInlineCheck = 1 << 1, |
685 kReturnTrueFalseObject = 1 << 2 | 697 kReturnTrueFalseObject = 1 << 2 |
686 }; | 698 }; |
687 | 699 |
688 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) { | 700 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) { |
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2673 | 2685 |
2674 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2686 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2675 #undef DEFINE_PLATFORM_CODE_STUB | 2687 #undef DEFINE_PLATFORM_CODE_STUB |
2676 #undef DEFINE_HANDLER_CODE_STUB | 2688 #undef DEFINE_HANDLER_CODE_STUB |
2677 #undef DEFINE_HYDROGEN_CODE_STUB | 2689 #undef DEFINE_HYDROGEN_CODE_STUB |
2678 #undef DEFINE_CODE_STUB | 2690 #undef DEFINE_CODE_STUB |
2679 #undef DEFINE_CODE_STUB_BASE | 2691 #undef DEFINE_CODE_STUB_BASE |
2680 } } // namespace v8::internal | 2692 } } // namespace v8::internal |
2681 | 2693 |
2682 #endif // V8_CODE_STUBS_H_ | 2694 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |