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

Side by Side Diff: src/code-factory.h

Issue 2019313003: IC: Eliminate initialization_state as a factor in IC installation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed compile error. Created 4 years, 6 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 | « no previous file | src/code-factory.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 #ifndef V8_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 16 matching lines...) Expand all
27 const Handle<Code> code_; 27 const Handle<Code> code_;
28 const CallInterfaceDescriptor descriptor_; 28 const CallInterfaceDescriptor descriptor_;
29 }; 29 };
30 30
31 31
32 class CodeFactory final { 32 class CodeFactory final {
33 public: 33 public:
34 // Initial states for ICs. 34 // Initial states for ICs.
35 static Callable LoadIC(Isolate* isolate, TypeofMode typeof_mode); 35 static Callable LoadIC(Isolate* isolate, TypeofMode typeof_mode);
36 static Callable LoadICInOptimizedCode(Isolate* isolate, 36 static Callable LoadICInOptimizedCode(Isolate* isolate,
37 TypeofMode typeof_mode, 37 TypeofMode typeof_mode);
38 InlineCacheState initialization_state);
39 static Callable KeyedLoadIC(Isolate* isolate); 38 static Callable KeyedLoadIC(Isolate* isolate);
40 static Callable KeyedLoadICInOptimizedCode( 39 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate);
41 Isolate* isolate, InlineCacheState initialization_state);
42 static Callable CallIC(Isolate* isolate, int argc, 40 static Callable CallIC(Isolate* isolate, int argc,
43 ConvertReceiverMode mode = ConvertReceiverMode::kAny, 41 ConvertReceiverMode mode = ConvertReceiverMode::kAny,
44 TailCallMode tail_call_mode = TailCallMode::kDisallow); 42 TailCallMode tail_call_mode = TailCallMode::kDisallow);
45 static Callable CallICInOptimizedCode( 43 static Callable CallICInOptimizedCode(
46 Isolate* isolate, int argc, 44 Isolate* isolate, int argc,
47 ConvertReceiverMode mode = ConvertReceiverMode::kAny, 45 ConvertReceiverMode mode = ConvertReceiverMode::kAny,
48 TailCallMode tail_call_mode = TailCallMode::kDisallow); 46 TailCallMode tail_call_mode = TailCallMode::kDisallow);
49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); 47 static Callable StoreIC(Isolate* isolate, LanguageMode mode);
50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, 48 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode);
51 InlineCacheState initialization_state);
52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); 49 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode);
53 static Callable KeyedStoreICInOptimizedCode( 50 static Callable KeyedStoreICInOptimizedCode(Isolate* isolate,
54 Isolate* isolate, LanguageMode mode, 51 LanguageMode mode);
55 InlineCacheState initialization_state);
56 52
57 static Callable ResumeGenerator(Isolate* isolate); 53 static Callable ResumeGenerator(Isolate* isolate);
58 54
59 static Callable CompareIC(Isolate* isolate, Token::Value op); 55 static Callable CompareIC(Isolate* isolate, Token::Value op);
60 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); 56 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value);
61 57
62 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); 58 static Callable BinaryOpIC(Isolate* isolate, Token::Value op);
63 59
64 static Callable ApiGetter(Isolate* isolate); 60 static Callable ApiGetter(Isolate* isolate);
65 61
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static Callable InterpreterPushArgsAndCall(Isolate* isolate, 147 static Callable InterpreterPushArgsAndCall(Isolate* isolate,
152 TailCallMode tail_call_mode); 148 TailCallMode tail_call_mode);
153 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); 149 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate);
154 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); 150 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1);
155 }; 151 };
156 152
157 } // namespace internal 153 } // namespace internal
158 } // namespace v8 154 } // namespace v8
159 155
160 #endif // V8_CODE_FACTORY_H_ 156 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698