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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 V(RestParamAccess) \ | 47 V(RestParamAccess) \ |
48 V(RegExpExec) \ | 48 V(RegExpExec) \ |
49 V(StoreBufferOverflow) \ | 49 V(StoreBufferOverflow) \ |
50 V(StoreElement) \ | 50 V(StoreElement) \ |
51 V(StringCompare) \ | 51 V(StringCompare) \ |
52 V(StubFailureTrampoline) \ | 52 V(StubFailureTrampoline) \ |
53 V(SubString) \ | 53 V(SubString) \ |
54 V(ToNumber) \ | 54 V(ToNumber) \ |
55 V(ToLength) \ | 55 V(ToLength) \ |
56 V(ToString) \ | 56 V(ToString) \ |
| 57 V(ToName) \ |
57 V(ToObject) \ | 58 V(ToObject) \ |
58 V(VectorStoreICTrampoline) \ | 59 V(VectorStoreICTrampoline) \ |
59 V(VectorKeyedStoreICTrampoline) \ | 60 V(VectorKeyedStoreICTrampoline) \ |
60 V(VectorStoreIC) \ | 61 V(VectorStoreIC) \ |
61 V(VectorKeyedStoreIC) \ | 62 V(VectorKeyedStoreIC) \ |
62 /* HydrogenCodeStubs */ \ | 63 /* HydrogenCodeStubs */ \ |
63 V(AllocateHeapNumber) \ | 64 V(AllocateHeapNumber) \ |
64 V(AllocateMutableHeapNumber) \ | 65 V(AllocateMutableHeapNumber) \ |
65 V(AllocateInNewSpace) \ | 66 V(AllocateInNewSpace) \ |
66 V(ArrayNArgumentsConstructor) \ | 67 V(ArrayNArgumentsConstructor) \ |
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2943 | 2944 |
2944 class ToStringStub final : public PlatformCodeStub { | 2945 class ToStringStub final : public PlatformCodeStub { |
2945 public: | 2946 public: |
2946 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 2947 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
2947 | 2948 |
2948 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToString); | 2949 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToString); |
2949 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); | 2950 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); |
2950 }; | 2951 }; |
2951 | 2952 |
2952 | 2953 |
| 2954 class ToNameStub final : public PlatformCodeStub { |
| 2955 public: |
| 2956 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2957 |
| 2958 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToName); |
| 2959 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); |
| 2960 }; |
| 2961 |
| 2962 |
2953 class ToObjectStub final : public HydrogenCodeStub { | 2963 class ToObjectStub final : public HydrogenCodeStub { |
2954 public: | 2964 public: |
2955 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 2965 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
2956 | 2966 |
2957 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); | 2967 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); |
2958 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); | 2968 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); |
2959 }; | 2969 }; |
2960 | 2970 |
2961 | 2971 |
2962 class StringCompareStub : public PlatformCodeStub { | 2972 class StringCompareStub : public PlatformCodeStub { |
(...skipping 11 matching lines...) Expand all Loading... |
2974 #undef DEFINE_HYDROGEN_CODE_STUB | 2984 #undef DEFINE_HYDROGEN_CODE_STUB |
2975 #undef DEFINE_CODE_STUB | 2985 #undef DEFINE_CODE_STUB |
2976 #undef DEFINE_CODE_STUB_BASE | 2986 #undef DEFINE_CODE_STUB_BASE |
2977 | 2987 |
2978 extern Representation RepresentationFromType(Type* type); | 2988 extern Representation RepresentationFromType(Type* type); |
2979 | 2989 |
2980 } // namespace internal | 2990 } // namespace internal |
2981 } // namespace v8 | 2991 } // namespace v8 |
2982 | 2992 |
2983 #endif // V8_CODE_STUBS_H_ | 2993 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |