Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/code-stubs.h

Issue 1612323003: Introduce {FAST,SLOW}_STRING_WRAPPER_ELEMENTS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 DEFINE_HYDROGEN_CODE_STUB(InternalArrayNArgumentsConstructor, 2718 DEFINE_HYDROGEN_CODE_STUB(InternalArrayNArgumentsConstructor,
2719 InternalArrayConstructorStubBase); 2719 InternalArrayConstructorStubBase);
2720 }; 2720 };
2721 2721
2722 2722
2723 class StoreElementStub : public PlatformCodeStub { 2723 class StoreElementStub : public PlatformCodeStub {
2724 public: 2724 public:
2725 StoreElementStub(Isolate* isolate, ElementsKind elements_kind, 2725 StoreElementStub(Isolate* isolate, ElementsKind elements_kind,
2726 KeyedAccessStoreMode mode) 2726 KeyedAccessStoreMode mode)
2727 : PlatformCodeStub(isolate) { 2727 : PlatformCodeStub(isolate) {
2728 // TODO(jkummerow): Rename this stub to StoreSlowElementStub,
2729 // drop elements_kind parameter.
2730 DCHECK_EQ(DICTIONARY_ELEMENTS, elements_kind);
2728 minor_key_ = ElementsKindBits::encode(elements_kind) | 2731 minor_key_ = ElementsKindBits::encode(elements_kind) |
2729 CommonStoreModeBits::encode(mode); 2732 CommonStoreModeBits::encode(mode);
2730 } 2733 }
2731 2734
2732 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { 2735 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
2733 return VectorStoreICDescriptor(isolate()); 2736 return VectorStoreICDescriptor(isolate());
2734 } 2737 }
2735 2738
2736 Code::Kind GetCodeKind() const override { return Code::HANDLER; } 2739 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
2737 2740
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 #undef DEFINE_HYDROGEN_CODE_STUB 2987 #undef DEFINE_HYDROGEN_CODE_STUB
2985 #undef DEFINE_CODE_STUB 2988 #undef DEFINE_CODE_STUB
2986 #undef DEFINE_CODE_STUB_BASE 2989 #undef DEFINE_CODE_STUB_BASE
2987 2990
2988 extern Representation RepresentationFromType(Type* type); 2991 extern Representation RepresentationFromType(Type* type);
2989 2992
2990 } // namespace internal 2993 } // namespace internal
2991 } // namespace v8 2994 } // namespace v8
2992 2995
2993 #endif // V8_CODE_STUBS_H_ 2996 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698