| 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 30 matching lines...) Expand all Loading... |
| 41 V(LoadIndexedString) \ | 41 V(LoadIndexedString) \ |
| 42 V(MathPow) \ | 42 V(MathPow) \ |
| 43 V(ProfileEntryHook) \ | 43 V(ProfileEntryHook) \ |
| 44 V(RecordWrite) \ | 44 V(RecordWrite) \ |
| 45 V(RegExpExec) \ | 45 V(RegExpExec) \ |
| 46 V(StoreBufferOverflow) \ | 46 V(StoreBufferOverflow) \ |
| 47 V(StoreElement) \ | 47 V(StoreElement) \ |
| 48 V(StubFailureTrampoline) \ | 48 V(StubFailureTrampoline) \ |
| 49 V(SubString) \ | 49 V(SubString) \ |
| 50 V(ToNumber) \ | 50 V(ToNumber) \ |
| 51 V(NonNumberToNumber) \ |
| 52 V(StringToNumber) \ |
| 51 V(ToLength) \ | 53 V(ToLength) \ |
| 52 V(ToString) \ | 54 V(ToString) \ |
| 53 V(ToName) \ | 55 V(ToName) \ |
| 54 V(ToObject) \ | 56 V(ToObject) \ |
| 55 V(VectorStoreICTrampoline) \ | 57 V(VectorStoreICTrampoline) \ |
| 56 V(VectorKeyedStoreICTrampoline) \ | 58 V(VectorKeyedStoreICTrampoline) \ |
| 57 V(VectorStoreIC) \ | 59 V(VectorStoreIC) \ |
| 58 V(VectorKeyedStoreIC) \ | 60 V(VectorKeyedStoreIC) \ |
| 59 /* HydrogenCodeStubs */ \ | 61 /* HydrogenCodeStubs */ \ |
| 60 V(AllocateInNewSpace) \ | 62 V(AllocateInNewSpace) \ |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2929 | 2931 |
| 2930 | 2932 |
| 2931 class ToNumberStub final : public PlatformCodeStub { | 2933 class ToNumberStub final : public PlatformCodeStub { |
| 2932 public: | 2934 public: |
| 2933 explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 2935 explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2934 | 2936 |
| 2935 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 2937 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 2936 DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub); | 2938 DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub); |
| 2937 }; | 2939 }; |
| 2938 | 2940 |
| 2941 class NonNumberToNumberStub final : public PlatformCodeStub { |
| 2942 public: |
| 2943 explicit NonNumberToNumberStub(Isolate* isolate) |
| 2944 : PlatformCodeStub(isolate) {} |
| 2945 |
| 2946 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 2947 DEFINE_PLATFORM_CODE_STUB(NonNumberToNumber, PlatformCodeStub); |
| 2948 }; |
| 2949 |
| 2950 class StringToNumberStub final : public PlatformCodeStub { |
| 2951 public: |
| 2952 explicit StringToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2953 |
| 2954 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 2955 DEFINE_PLATFORM_CODE_STUB(StringToNumber, PlatformCodeStub); |
| 2956 }; |
| 2939 | 2957 |
| 2940 class ToLengthStub final : public PlatformCodeStub { | 2958 class ToLengthStub final : public PlatformCodeStub { |
| 2941 public: | 2959 public: |
| 2942 explicit ToLengthStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 2960 explicit ToLengthStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2943 | 2961 |
| 2944 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 2962 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 2945 DEFINE_PLATFORM_CODE_STUB(ToLength, PlatformCodeStub); | 2963 DEFINE_PLATFORM_CODE_STUB(ToLength, PlatformCodeStub); |
| 2946 }; | 2964 }; |
| 2947 | 2965 |
| 2948 | 2966 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2978 #undef DEFINE_HYDROGEN_CODE_STUB | 2996 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2979 #undef DEFINE_CODE_STUB | 2997 #undef DEFINE_CODE_STUB |
| 2980 #undef DEFINE_CODE_STUB_BASE | 2998 #undef DEFINE_CODE_STUB_BASE |
| 2981 | 2999 |
| 2982 extern Representation RepresentationFromType(Type* type); | 3000 extern Representation RepresentationFromType(Type* type); |
| 2983 | 3001 |
| 2984 } // namespace internal | 3002 } // namespace internal |
| 2985 } // namespace v8 | 3003 } // namespace v8 |
| 2986 | 3004 |
| 2987 #endif // V8_CODE_STUBS_H_ | 3005 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |