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

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

Issue 892383003: emit premonomorphic ics for loads/stores in optimized code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 : PropertyAccessCompiler(isolate, kind, cache_holder), 63 : PropertyAccessCompiler(isolate, kind, cache_holder),
64 extra_ic_state_(extra_ic_state) {} 64 extra_ic_state_(extra_ic_state) {}
65 65
66 static Handle<Code> Find(Handle<Name> name, Handle<Map> stub_holder_map, 66 static Handle<Code> Find(Handle<Name> name, Handle<Map> stub_holder_map,
67 Code::Kind kind, 67 Code::Kind kind,
68 ExtraICState extra_ic_state = kNoExtraICState, 68 ExtraICState extra_ic_state = kNoExtraICState,
69 CacheHolderFlag cache_holder = kCacheOnReceiver); 69 CacheHolderFlag cache_holder = kCacheOnReceiver);
70 70
71 Handle<Code> CompileLoadInitialize(Code::Flags flags); 71 Handle<Code> CompileLoadInitialize(Code::Flags flags);
72 Handle<Code> CompileLoadPreMonomorphic(Code::Flags flags); 72 Handle<Code> CompileLoadPreMonomorphic(Code::Flags flags);
73 Handle<Code> CompileLoadMegamorphic(Code::Flags flags);
73 Handle<Code> CompileStoreInitialize(Code::Flags flags); 74 Handle<Code> CompileStoreInitialize(Code::Flags flags);
74 Handle<Code> CompileStorePreMonomorphic(Code::Flags flags); 75 Handle<Code> CompileStorePreMonomorphic(Code::Flags flags);
75 Handle<Code> CompileStoreGeneric(Code::Flags flags); 76 Handle<Code> CompileStoreGeneric(Code::Flags flags);
76 Handle<Code> CompileStoreMegamorphic(Code::Flags flags); 77 Handle<Code> CompileStoreMegamorphic(Code::Flags flags);
77 78
78 Handle<Code> CompileMonomorphic(Handle<Map> map, Handle<Code> handler, 79 Handle<Code> CompileMonomorphic(Handle<Map> map, Handle<Code> handler,
79 Handle<Name> name, IcCheckType check); 80 Handle<Name> name, IcCheckType check);
80 Handle<Code> CompilePolymorphic(MapHandleList* maps, CodeHandleList* handlers, 81 Handle<Code> CompilePolymorphic(MapHandleList* maps, CodeHandleList* handlers,
81 Handle<Name> name, Code::StubType type, 82 Handle<Name> name, Code::StubType type,
82 IcCheckType check); 83 IcCheckType check);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 115 }
115 116
116 const ExtraICState extra_ic_state_; 117 const ExtraICState extra_ic_state_;
117 }; 118 };
118 119
119 120
120 } 121 }
121 } // namespace v8::internal 122 } // namespace v8::internal
122 123
123 #endif // V8_IC_IC_COMPILER_H_ 124 #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