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

Side by Side Diff: src/ic/keyed-store-generic.cc

Issue 2647493002: [ic] Clean up handler boilerplate (Closed)
Patch Set: rebased Created 3 years, 11 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/ic/ic.cc ('k') | src/runtime/runtime.h » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/ic/keyed-store-generic.h" 5 #include "src/ic/keyed-store-generic.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stub-assembler.h" 8 #include "src/code-stub-assembler.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/ic/accessor-assembler-impl.h" 10 #include "src/ic/accessor-assembler.h"
11 #include "src/interface-descriptors.h" 11 #include "src/interface-descriptors.h"
12 #include "src/isolate.h" 12 #include "src/isolate.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 using compiler::Node; 17 using compiler::Node;
18 18
19 class KeyedStoreGenericAssembler : public AccessorAssemblerImpl { 19 class KeyedStoreGenericAssembler : public AccessorAssembler {
20 public: 20 public:
21 explicit KeyedStoreGenericAssembler(compiler::CodeAssemblerState* state) 21 explicit KeyedStoreGenericAssembler(compiler::CodeAssemblerState* state)
22 : AccessorAssemblerImpl(state) {} 22 : AccessorAssembler(state) {}
23 23
24 void KeyedStoreGeneric(LanguageMode language_mode); 24 void KeyedStoreGeneric(LanguageMode language_mode);
25 25
26 private: 26 private:
27 enum UpdateLength { 27 enum UpdateLength {
28 kDontChangeLength, 28 kDontChangeLength,
29 kIncrementLengthByOne, 29 kIncrementLengthByOne,
30 kBumpLengthWithGap 30 kBumpLengthWithGap
31 }; 31 };
32 32
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 Bind(&slow); 788 Bind(&slow);
789 { 789 {
790 Comment("KeyedStoreGeneric_slow"); 790 Comment("KeyedStoreGeneric_slow");
791 TailCallRuntime(Runtime::kSetProperty, context, receiver, name, value, 791 TailCallRuntime(Runtime::kSetProperty, context, receiver, name, value,
792 SmiConstant(language_mode)); 792 SmiConstant(language_mode));
793 } 793 }
794 } 794 }
795 795
796 } // namespace internal 796 } // namespace internal
797 } // namespace v8 797 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698