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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 V(ToNumber) \ | 54 V(ToNumber) \ |
55 V(ToLength) \ | 55 V(ToLength) \ |
56 V(ToString) \ | 56 V(ToString) \ |
57 V(ToObject) \ | 57 V(ToObject) \ |
58 V(VectorStoreICTrampoline) \ | 58 V(VectorStoreICTrampoline) \ |
59 V(VectorKeyedStoreICTrampoline) \ | 59 V(VectorKeyedStoreICTrampoline) \ |
60 V(VectorStoreIC) \ | 60 V(VectorStoreIC) \ |
61 V(VectorKeyedStoreIC) \ | 61 V(VectorKeyedStoreIC) \ |
62 /* HydrogenCodeStubs */ \ | 62 /* HydrogenCodeStubs */ \ |
63 V(AllocateHeapNumber) \ | 63 V(AllocateHeapNumber) \ |
| 64 V(AllocateMutableHeapNumber) \ |
64 V(AllocateInNewSpace) \ | 65 V(AllocateInNewSpace) \ |
65 V(ArrayNArgumentsConstructor) \ | 66 V(ArrayNArgumentsConstructor) \ |
66 V(ArrayNoArgumentConstructor) \ | 67 V(ArrayNoArgumentConstructor) \ |
67 V(ArraySingleArgumentConstructor) \ | 68 V(ArraySingleArgumentConstructor) \ |
68 V(BinaryOpIC) \ | 69 V(BinaryOpIC) \ |
69 V(BinaryOpWithAllocationSite) \ | 70 V(BinaryOpWithAllocationSite) \ |
70 V(CompareNilIC) \ | 71 V(CompareNilIC) \ |
71 V(CreateAllocationSite) \ | 72 V(CreateAllocationSite) \ |
72 V(CreateWeakCell) \ | 73 V(CreateWeakCell) \ |
73 V(ElementsTransitionAndStore) \ | 74 V(ElementsTransitionAndStore) \ |
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 public: | 2652 public: |
2652 explicit AllocateHeapNumberStub(Isolate* isolate) | 2653 explicit AllocateHeapNumberStub(Isolate* isolate) |
2653 : HydrogenCodeStub(isolate) {} | 2654 : HydrogenCodeStub(isolate) {} |
2654 | 2655 |
2655 private: | 2656 private: |
2656 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateHeapNumber); | 2657 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateHeapNumber); |
2657 DEFINE_HYDROGEN_CODE_STUB(AllocateHeapNumber, HydrogenCodeStub); | 2658 DEFINE_HYDROGEN_CODE_STUB(AllocateHeapNumber, HydrogenCodeStub); |
2658 }; | 2659 }; |
2659 | 2660 |
2660 | 2661 |
| 2662 class AllocateMutableHeapNumberStub final : public HydrogenCodeStub { |
| 2663 public: |
| 2664 explicit AllocateMutableHeapNumberStub(Isolate* isolate) |
| 2665 : HydrogenCodeStub(isolate) {} |
| 2666 |
| 2667 private: |
| 2668 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateMutableHeapNumber); |
| 2669 DEFINE_HYDROGEN_CODE_STUB(AllocateMutableHeapNumber, HydrogenCodeStub); |
| 2670 }; |
| 2671 |
| 2672 |
2661 class AllocateInNewSpaceStub final : public HydrogenCodeStub { | 2673 class AllocateInNewSpaceStub final : public HydrogenCodeStub { |
2662 public: | 2674 public: |
2663 explicit AllocateInNewSpaceStub(Isolate* isolate) | 2675 explicit AllocateInNewSpaceStub(Isolate* isolate) |
2664 : HydrogenCodeStub(isolate) {} | 2676 : HydrogenCodeStub(isolate) {} |
2665 | 2677 |
2666 private: | 2678 private: |
2667 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateInNewSpace); | 2679 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateInNewSpace); |
2668 DEFINE_HYDROGEN_CODE_STUB(AllocateInNewSpace, HydrogenCodeStub); | 2680 DEFINE_HYDROGEN_CODE_STUB(AllocateInNewSpace, HydrogenCodeStub); |
2669 }; | 2681 }; |
2670 | 2682 |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 #undef DEFINE_HYDROGEN_CODE_STUB | 3131 #undef DEFINE_HYDROGEN_CODE_STUB |
3120 #undef DEFINE_CODE_STUB | 3132 #undef DEFINE_CODE_STUB |
3121 #undef DEFINE_CODE_STUB_BASE | 3133 #undef DEFINE_CODE_STUB_BASE |
3122 | 3134 |
3123 extern Representation RepresentationFromType(Type* type); | 3135 extern Representation RepresentationFromType(Type* type); |
3124 | 3136 |
3125 } // namespace internal | 3137 } // namespace internal |
3126 } // namespace v8 | 3138 } // namespace v8 |
3127 | 3139 |
3128 #endif // V8_CODE_STUBS_H_ | 3140 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |