OLD | NEW |
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 Loading... |
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 |
OLD | NEW |