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

Side by Side Diff: src/ic/ic-compiler.h

Issue 1326483002: Vector ICs: Adapting store ic classes for vectors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and comment. Created 5 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/ic/ic.cc ('k') | src/ic/ic-compiler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_IC_IC_COMPILER_H_ 5 #ifndef V8_IC_IC_COMPILER_H_
6 #define V8_IC_IC_COMPILER_H_ 6 #define V8_IC_IC_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 16 matching lines...) Expand all
27 static Handle<Code> ComputePolymorphic(Code::Kind kind, MapHandleList* maps, 27 static Handle<Code> ComputePolymorphic(Code::Kind kind, MapHandleList* maps,
28 CodeHandleList* handlers, 28 CodeHandleList* handlers,
29 int number_of_valid_maps, 29 int number_of_valid_maps,
30 Handle<Name> name, 30 Handle<Name> name,
31 ExtraICState extra_ic_state); 31 ExtraICState extra_ic_state);
32 32
33 // Keyed 33 // Keyed
34 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( 34 static Handle<Code> ComputeKeyedLoadMonomorphicHandler(
35 Handle<Map> receiver_map, ExtraICState extra_ic_state); 35 Handle<Map> receiver_map, ExtraICState extra_ic_state);
36 36
37 static Handle<Code> ComputeKeyedStoreMonomorphicHandler(
38 Handle<Map> receiver_map, LanguageMode language_mode,
39 KeyedAccessStoreMode store_mode);
37 static Handle<Code> ComputeKeyedStoreMonomorphic( 40 static Handle<Code> ComputeKeyedStoreMonomorphic(
38 Handle<Map> receiver_map, LanguageMode language_mode, 41 Handle<Map> receiver_map, LanguageMode language_mode,
39 KeyedAccessStoreMode store_mode); 42 KeyedAccessStoreMode store_mode);
40 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps, 43 static void ComputeKeyedStorePolymorphicHandlers(
41 LanguageMode language_mode); 44 MapHandleList* receiver_maps, MapHandleList* transitioned_maps,
45 CodeHandleList* handlers, KeyedAccessStoreMode store_mode,
46 LanguageMode language_mode);
42 static Handle<Code> ComputeKeyedStorePolymorphic( 47 static Handle<Code> ComputeKeyedStorePolymorphic(
43 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, 48 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode,
44 LanguageMode language_mode); 49 LanguageMode language_mode);
45 50
46 // Compare nil 51 // Compare nil
47 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, 52 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map,
48 CompareNilICStub* stub); 53 CompareNilICStub* stub);
49 54
50 // Helpers 55 // Helpers
51 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler 56 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler
(...skipping 19 matching lines...) Expand all
71 Handle<Code> CompileStorePreMonomorphic(Code::Flags flags); 76 Handle<Code> CompileStorePreMonomorphic(Code::Flags flags);
72 Handle<Code> CompileStoreGeneric(Code::Flags flags); 77 Handle<Code> CompileStoreGeneric(Code::Flags flags);
73 Handle<Code> CompileStoreMegamorphic(Code::Flags flags); 78 Handle<Code> CompileStoreMegamorphic(Code::Flags flags);
74 79
75 Handle<Code> CompileMonomorphic(Handle<Map> map, Handle<Code> handler, 80 Handle<Code> CompileMonomorphic(Handle<Map> map, Handle<Code> handler,
76 Handle<Name> name, IcCheckType check); 81 Handle<Name> name, IcCheckType check);
77 Handle<Code> CompilePolymorphic(MapHandleList* maps, CodeHandleList* handlers, 82 Handle<Code> CompilePolymorphic(MapHandleList* maps, CodeHandleList* handlers,
78 Handle<Name> name, Code::StubType type, 83 Handle<Name> name, Code::StubType type,
79 IcCheckType check); 84 IcCheckType check);
80 85
86 Handle<Code> CompileKeyedStoreMonomorphicHandler(
87 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode);
81 Handle<Code> CompileKeyedStoreMonomorphic(Handle<Map> receiver_map, 88 Handle<Code> CompileKeyedStoreMonomorphic(Handle<Map> receiver_map,
82 KeyedAccessStoreMode store_mode); 89 KeyedAccessStoreMode store_mode);
83 Handle<Code> CompileKeyedStorePolymorphic(MapHandleList* receiver_maps, 90 Handle<Code> CompileKeyedStorePolymorphic(MapHandleList* receiver_maps,
84 KeyedAccessStoreMode store_mode); 91 KeyedAccessStoreMode store_mode);
92 void CompileKeyedStorePolymorphicHandlers(MapHandleList* receiver_maps,
93 MapHandleList* transitioned_maps,
94 CodeHandleList* handlers,
95 KeyedAccessStoreMode store_mode);
85 Handle<Code> CompileKeyedStorePolymorphic(MapHandleList* receiver_maps, 96 Handle<Code> CompileKeyedStorePolymorphic(MapHandleList* receiver_maps,
86 CodeHandleList* handler_stubs, 97 CodeHandleList* handler_stubs,
87 MapHandleList* transitioned_maps); 98 MapHandleList* transitioned_maps);
88 99
89 bool IncludesNumberMap(MapHandleList* maps); 100 bool IncludesNumberMap(MapHandleList* maps);
90 101
91 Handle<Code> GetCode(Code::Kind kind, Code::StubType type, Handle<Name> name, 102 Handle<Code> GetCode(Code::Kind kind, Code::StubType type, Handle<Name> name,
92 InlineCacheState state = MONOMORPHIC); 103 InlineCacheState state = MONOMORPHIC);
93 104
94 Logger::LogEventsAndTags log_kind(Handle<Code> code) { 105 Logger::LogEventsAndTags log_kind(Handle<Code> code) {
(...skipping 16 matching lines...) Expand all
111 } 122 }
112 123
113 const ExtraICState extra_ic_state_; 124 const ExtraICState extra_ic_state_;
114 }; 125 };
115 126
116 127
117 } 128 }
118 } // namespace v8::internal 129 } // namespace v8::internal
119 130
120 #endif // V8_IC_IC_COMPILER_H_ 131 #endif // V8_IC_IC_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698