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

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: one more DCHECK fix 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
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698