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

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

Issue 2343813002: [ic] Move KeyedStoreIC::GenerateSlow() to ic-XXX.cc to avoid code duplication. (Closed)
Patch Set: Created 4 years, 3 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/builtins-handler.cc ('k') | src/ic/arm/handler-compiler-arm.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 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 5652 matching lines...) Expand 10 before | Expand all | Expand 10 after
5663 5663
5664 5664
5665 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { 5665 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) {
5666 CreateWeakCellStub stub(isolate); 5666 CreateWeakCellStub stub(isolate);
5667 stub.GetCode(); 5667 stub.GetCode();
5668 } 5668 }
5669 5669
5670 5670
5671 void StoreElementStub::Generate(MacroAssembler* masm) { 5671 void StoreElementStub::Generate(MacroAssembler* masm) {
5672 DCHECK_EQ(DICTIONARY_ELEMENTS, elements_kind()); 5672 DCHECK_EQ(DICTIONARY_ELEMENTS, elements_kind());
5673 ElementHandlerCompiler::GenerateStoreSlow(masm); 5673 KeyedStoreIC::GenerateSlow(masm);
5674 } 5674 }
5675 5675
5676 void StoreFastElementStub::GenerateAssembly( 5676 void StoreFastElementStub::GenerateAssembly(
5677 CodeStubAssembler* assembler) const { 5677 CodeStubAssembler* assembler) const {
5678 typedef CodeStubAssembler::Label Label; 5678 typedef CodeStubAssembler::Label Label;
5679 typedef compiler::Node Node; 5679 typedef compiler::Node Node;
5680 5680
5681 assembler->Comment( 5681 assembler->Comment(
5682 "StoreFastElementStub: js_array=%d, elements_kind=%s, store_mode=%d", 5682 "StoreFastElementStub: js_array=%d, elements_kind=%s, store_mode=%d",
5683 is_js_array(), ElementsKindToString(elements_kind()), store_mode()); 5683 is_js_array(), ElementsKindToString(elements_kind()), store_mode());
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
6034 6034
6035 if (type == MachineType::Pointer()) { 6035 if (type == MachineType::Pointer()) {
6036 return Representation::External(); 6036 return Representation::External();
6037 } 6037 }
6038 6038
6039 return Representation::Tagged(); 6039 return Representation::Tagged();
6040 } 6040 }
6041 6041
6042 } // namespace internal 6042 } // namespace internal
6043 } // namespace v8 6043 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-handler.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698