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(ToString) \ | 54 V(ToString) \ |
55 V(ToName) \ | 55 V(ToName) \ |
56 V(ToObject) \ | 56 V(ToObject) \ |
57 V(VectorStoreICTrampoline) \ | 57 V(VectorStoreICTrampoline) \ |
58 V(VectorKeyedStoreICTrampoline) \ | 58 V(VectorKeyedStoreICTrampoline) \ |
59 V(VectorStoreIC) \ | 59 V(VectorStoreIC) \ |
60 V(VectorKeyedStoreIC) \ | 60 V(VectorKeyedStoreIC) \ |
61 /* HydrogenCodeStubs */ \ | 61 /* HydrogenCodeStubs */ \ |
62 V(AllocateHeapNumber) \ | 62 V(AllocateHeapNumber) \ |
63 V(AllocateMutableHeapNumber) \ | 63 V(AllocateMutableHeapNumber) \ |
| 64 V(AllocateFloat32x4) \ |
| 65 V(AllocateInt32x4) \ |
| 66 V(AllocateUint32x4) \ |
| 67 V(AllocateBool32x4) \ |
| 68 V(AllocateInt16x8) \ |
| 69 V(AllocateUint16x8) \ |
| 70 V(AllocateBool16x8) \ |
| 71 V(AllocateInt8x16) \ |
| 72 V(AllocateUint8x16) \ |
| 73 V(AllocateBool8x16) \ |
64 V(AllocateInNewSpace) \ | 74 V(AllocateInNewSpace) \ |
65 V(ArrayNArgumentsConstructor) \ | 75 V(ArrayNArgumentsConstructor) \ |
66 V(ArrayNoArgumentConstructor) \ | 76 V(ArrayNoArgumentConstructor) \ |
67 V(ArraySingleArgumentConstructor) \ | 77 V(ArraySingleArgumentConstructor) \ |
68 V(BinaryOpIC) \ | 78 V(BinaryOpIC) \ |
69 V(BinaryOpWithAllocationSite) \ | 79 V(BinaryOpWithAllocationSite) \ |
70 V(CompareNilIC) \ | 80 V(CompareNilIC) \ |
71 V(CreateAllocationSite) \ | 81 V(CreateAllocationSite) \ |
72 V(CreateWeakCell) \ | 82 V(CreateWeakCell) \ |
73 V(ElementsTransitionAndStore) \ | 83 V(ElementsTransitionAndStore) \ |
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 class AllocateMutableHeapNumberStub final : public HydrogenCodeStub { | 2514 class AllocateMutableHeapNumberStub final : public HydrogenCodeStub { |
2505 public: | 2515 public: |
2506 explicit AllocateMutableHeapNumberStub(Isolate* isolate) | 2516 explicit AllocateMutableHeapNumberStub(Isolate* isolate) |
2507 : HydrogenCodeStub(isolate) {} | 2517 : HydrogenCodeStub(isolate) {} |
2508 | 2518 |
2509 private: | 2519 private: |
2510 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateMutableHeapNumber); | 2520 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateMutableHeapNumber); |
2511 DEFINE_HYDROGEN_CODE_STUB(AllocateMutableHeapNumber, HydrogenCodeStub); | 2521 DEFINE_HYDROGEN_CODE_STUB(AllocateMutableHeapNumber, HydrogenCodeStub); |
2512 }; | 2522 }; |
2513 | 2523 |
| 2524 #define SIMD128_VALUE_STUB(TYPE, Type, type, lane_count, lane_type) \ |
| 2525 class Allocate##Type##Stub final : public HydrogenCodeStub { \ |
| 2526 public: \ |
| 2527 explicit Allocate##Type##Stub(Isolate* isolate) \ |
| 2528 : HydrogenCodeStub(isolate) {} \ |
| 2529 \ |
| 2530 private: \ |
| 2531 DEFINE_CALL_INTERFACE_DESCRIPTOR(Allocate##Type); \ |
| 2532 DEFINE_HYDROGEN_CODE_STUB(Allocate##Type, HydrogenCodeStub); \ |
| 2533 }; |
| 2534 SIMD128_TYPES(SIMD128_VALUE_STUB) |
| 2535 #undef SIMD128_VALUE_STUB |
2514 | 2536 |
2515 class AllocateInNewSpaceStub final : public HydrogenCodeStub { | 2537 class AllocateInNewSpaceStub final : public HydrogenCodeStub { |
2516 public: | 2538 public: |
2517 explicit AllocateInNewSpaceStub(Isolate* isolate) | 2539 explicit AllocateInNewSpaceStub(Isolate* isolate) |
2518 : HydrogenCodeStub(isolate) {} | 2540 : HydrogenCodeStub(isolate) {} |
2519 | 2541 |
2520 private: | 2542 private: |
2521 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateInNewSpace); | 2543 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateInNewSpace); |
2522 DEFINE_HYDROGEN_CODE_STUB(AllocateInNewSpace, HydrogenCodeStub); | 2544 DEFINE_HYDROGEN_CODE_STUB(AllocateInNewSpace, HydrogenCodeStub); |
2523 }; | 2545 }; |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2956 #undef DEFINE_HYDROGEN_CODE_STUB | 2978 #undef DEFINE_HYDROGEN_CODE_STUB |
2957 #undef DEFINE_CODE_STUB | 2979 #undef DEFINE_CODE_STUB |
2958 #undef DEFINE_CODE_STUB_BASE | 2980 #undef DEFINE_CODE_STUB_BASE |
2959 | 2981 |
2960 extern Representation RepresentationFromType(Type* type); | 2982 extern Representation RepresentationFromType(Type* type); |
2961 | 2983 |
2962 } // namespace internal | 2984 } // namespace internal |
2963 } // namespace v8 | 2985 } // namespace v8 |
2964 | 2986 |
2965 #endif // V8_CODE_STUBS_H_ | 2987 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |