OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 // Initial states for ICs. | 34 // Initial states for ICs. |
35 static Callable LoadIC(Isolate* isolate); | 35 static Callable LoadIC(Isolate* isolate); |
36 static Callable LoadICInOptimizedCode(Isolate* isolate); | 36 static Callable LoadICInOptimizedCode(Isolate* isolate); |
37 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); | 37 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); |
38 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, | 38 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, |
39 TypeofMode typeof_mode); | 39 TypeofMode typeof_mode); |
40 static Callable KeyedLoadIC(Isolate* isolate); | 40 static Callable KeyedLoadIC(Isolate* isolate); |
41 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); | 41 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); |
42 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); | 42 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); |
43 static Callable CallIC(Isolate* isolate, int argc, | 43 static Callable CallIC(Isolate* isolate, |
44 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 44 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
45 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 45 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
46 static Callable CallICInOptimizedCode( | 46 static Callable CallICInOptimizedCode( |
47 Isolate* isolate, int argc, | 47 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
48 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | |
49 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 48 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
50 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); |
51 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode); | 50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode); |
52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 51 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); |
53 static Callable KeyedStoreICInOptimizedCode(Isolate* isolate, | 52 static Callable KeyedStoreICInOptimizedCode(Isolate* isolate, |
54 LanguageMode mode); | 53 LanguageMode mode); |
55 | 54 |
56 static Callable ResumeGenerator(Isolate* isolate); | 55 static Callable ResumeGenerator(Isolate* isolate); |
57 | 56 |
58 static Callable CompareIC(Isolate* isolate, Token::Value op); | 57 static Callable CompareIC(Isolate* isolate, Token::Value op); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 Isolate* isolate, CallableType function_type = CallableType::kAny); | 163 Isolate* isolate, CallableType function_type = CallableType::kAny); |
165 static Callable InterpreterPushArgsAndConstructArray(Isolate* isolate); | 164 static Callable InterpreterPushArgsAndConstructArray(Isolate* isolate); |
166 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 165 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
167 static Callable InterpreterOnStackReplacement(Isolate* isolate); | 166 static Callable InterpreterOnStackReplacement(Isolate* isolate); |
168 }; | 167 }; |
169 | 168 |
170 } // namespace internal | 169 } // namespace internal |
171 } // namespace v8 | 170 } // namespace v8 |
172 | 171 |
173 #endif // V8_CODE_FACTORY_H_ | 172 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |