| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 /* HydrogenCodeStubs */ \ | 59 /* HydrogenCodeStubs */ \ |
| 60 V(AllocateInNewSpace) \ | 60 V(AllocateInNewSpace) \ |
| 61 V(ArrayNArgumentsConstructor) \ | 61 V(ArrayNArgumentsConstructor) \ |
| 62 V(ArrayNoArgumentConstructor) \ | 62 V(ArrayNoArgumentConstructor) \ |
| 63 V(ArraySingleArgumentConstructor) \ | 63 V(ArraySingleArgumentConstructor) \ |
| 64 V(BinaryOpIC) \ | 64 V(BinaryOpIC) \ |
| 65 V(BinaryOpWithAllocationSite) \ | 65 V(BinaryOpWithAllocationSite) \ |
| 66 V(CreateAllocationSite) \ | 66 V(CreateAllocationSite) \ |
| 67 V(CreateWeakCell) \ | 67 V(CreateWeakCell) \ |
| 68 V(ElementsTransitionAndStore) \ | 68 V(ElementsTransitionAndStore) \ |
| 69 V(FastArrayPush) \ |
| 69 V(FastCloneRegExp) \ | 70 V(FastCloneRegExp) \ |
| 70 V(FastCloneShallowArray) \ | 71 V(FastCloneShallowArray) \ |
| 71 V(FastCloneShallowObject) \ | 72 V(FastCloneShallowObject) \ |
| 72 V(FastNewClosure) \ | 73 V(FastNewClosure) \ |
| 73 V(FastNewContext) \ | 74 V(FastNewContext) \ |
| 74 V(FastNewObject) \ | 75 V(FastNewObject) \ |
| 75 V(FastNewRestParameter) \ | 76 V(FastNewRestParameter) \ |
| 76 V(FastNewSloppyArguments) \ | 77 V(FastNewSloppyArguments) \ |
| 77 V(FastNewStrictArguments) \ | 78 V(FastNewStrictArguments) \ |
| 78 V(GrowArrayElements) \ | 79 V(GrowArrayElements) \ |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 bool is_js_array() const { return IsJsArrayBits::decode(sub_minor_key()); } | 1012 bool is_js_array() const { return IsJsArrayBits::decode(sub_minor_key()); } |
| 1012 | 1013 |
| 1013 private: | 1014 private: |
| 1014 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; | 1015 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; |
| 1015 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; | 1016 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; |
| 1016 | 1017 |
| 1017 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); | 1018 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); |
| 1018 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); | 1019 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); |
| 1019 }; | 1020 }; |
| 1020 | 1021 |
| 1022 class FastArrayPushStub : public HydrogenCodeStub { |
| 1023 public: |
| 1024 explicit FastArrayPushStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
| 1025 |
| 1026 private: |
| 1027 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastArrayPush); |
| 1028 DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub); |
| 1029 }; |
| 1021 | 1030 |
| 1022 class InstanceOfStub final : public PlatformCodeStub { | 1031 class InstanceOfStub final : public PlatformCodeStub { |
| 1023 public: | 1032 public: |
| 1024 explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 1033 explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 1025 | 1034 |
| 1026 private: | 1035 private: |
| 1027 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); | 1036 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); |
| 1028 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); | 1037 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); |
| 1029 }; | 1038 }; |
| 1030 | 1039 |
| (...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 #undef DEFINE_HYDROGEN_CODE_STUB | 2987 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2979 #undef DEFINE_CODE_STUB | 2988 #undef DEFINE_CODE_STUB |
| 2980 #undef DEFINE_CODE_STUB_BASE | 2989 #undef DEFINE_CODE_STUB_BASE |
| 2981 | 2990 |
| 2982 extern Representation RepresentationFromType(Type* type); | 2991 extern Representation RepresentationFromType(Type* type); |
| 2983 | 2992 |
| 2984 } // namespace internal | 2993 } // namespace internal |
| 2985 } // namespace v8 | 2994 } // namespace v8 |
| 2986 | 2995 |
| 2987 #endif // V8_CODE_STUBS_H_ | 2996 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |