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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2719 DEFINE_HYDROGEN_CODE_STUB(InternalArrayNArgumentsConstructor, | 2719 DEFINE_HYDROGEN_CODE_STUB(InternalArrayNArgumentsConstructor, |
2720 InternalArrayConstructorStubBase); | 2720 InternalArrayConstructorStubBase); |
2721 }; | 2721 }; |
2722 | 2722 |
2723 | 2723 |
2724 class StoreElementStub : public PlatformCodeStub { | 2724 class StoreElementStub : public PlatformCodeStub { |
2725 public: | 2725 public: |
2726 StoreElementStub(Isolate* isolate, ElementsKind elements_kind, | 2726 StoreElementStub(Isolate* isolate, ElementsKind elements_kind, |
2727 KeyedAccessStoreMode mode) | 2727 KeyedAccessStoreMode mode) |
2728 : PlatformCodeStub(isolate) { | 2728 : PlatformCodeStub(isolate) { |
| 2729 // TODO(jkummerow): Rename this stub to StoreSlowElementStub, |
| 2730 // drop elements_kind parameter. |
| 2731 DCHECK_EQ(DICTIONARY_ELEMENTS, elements_kind); |
2729 minor_key_ = ElementsKindBits::encode(elements_kind) | | 2732 minor_key_ = ElementsKindBits::encode(elements_kind) | |
2730 CommonStoreModeBits::encode(mode); | 2733 CommonStoreModeBits::encode(mode); |
2731 } | 2734 } |
2732 | 2735 |
2733 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { | 2736 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { |
2734 return VectorStoreICDescriptor(isolate()); | 2737 return VectorStoreICDescriptor(isolate()); |
2735 } | 2738 } |
2736 | 2739 |
2737 Code::Kind GetCodeKind() const override { return Code::HANDLER; } | 2740 Code::Kind GetCodeKind() const override { return Code::HANDLER; } |
2738 | 2741 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2985 #undef DEFINE_HYDROGEN_CODE_STUB | 2988 #undef DEFINE_HYDROGEN_CODE_STUB |
2986 #undef DEFINE_CODE_STUB | 2989 #undef DEFINE_CODE_STUB |
2987 #undef DEFINE_CODE_STUB_BASE | 2990 #undef DEFINE_CODE_STUB_BASE |
2988 | 2991 |
2989 extern Representation RepresentationFromType(Type* type); | 2992 extern Representation RepresentationFromType(Type* type); |
2990 | 2993 |
2991 } // namespace internal | 2994 } // namespace internal |
2992 } // namespace v8 | 2995 } // namespace v8 |
2993 | 2996 |
2994 #endif // V8_CODE_STUBS_H_ | 2997 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |