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 24 matching lines...) Expand all Loading... |
35 static Callable LoadIC(Isolate* isolate, TypeofMode typeof_mode, | 35 static Callable LoadIC(Isolate* isolate, TypeofMode typeof_mode, |
36 LanguageMode language_mode); | 36 LanguageMode language_mode); |
37 static Callable LoadICInOptimizedCode(Isolate* isolate, | 37 static Callable LoadICInOptimizedCode(Isolate* isolate, |
38 TypeofMode typeof_mode, | 38 TypeofMode typeof_mode, |
39 LanguageMode language_mode, | 39 LanguageMode language_mode, |
40 InlineCacheState initialization_state); | 40 InlineCacheState initialization_state); |
41 static Callable KeyedLoadIC(Isolate* isolate, LanguageMode language_mode); | 41 static Callable KeyedLoadIC(Isolate* isolate, LanguageMode language_mode); |
42 static Callable KeyedLoadICInOptimizedCode( | 42 static Callable KeyedLoadICInOptimizedCode( |
43 Isolate* isolate, LanguageMode language_mode, | 43 Isolate* isolate, LanguageMode language_mode, |
44 InlineCacheState initialization_state); | 44 InlineCacheState initialization_state); |
45 static Callable CallIC(Isolate* isolate, int argc); | 45 static Callable CallIC(Isolate* isolate, int argc, |
46 static Callable CallICInOptimizedCode(Isolate* isolate, int argc); | 46 ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
| 47 static Callable CallICInOptimizedCode( |
| 48 Isolate* isolate, int argc, |
| 49 ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
47 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 50 static Callable StoreIC(Isolate* isolate, LanguageMode mode); |
48 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, | 51 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, |
49 InlineCacheState initialization_state); | 52 InlineCacheState initialization_state); |
50 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 53 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); |
51 static Callable KeyedStoreICInOptimizedCode( | 54 static Callable KeyedStoreICInOptimizedCode( |
52 Isolate* isolate, LanguageMode mode, | 55 Isolate* isolate, LanguageMode mode, |
53 InlineCacheState initialization_state); | 56 InlineCacheState initialization_state); |
54 | 57 |
55 static Callable CompareIC(Isolate* isolate, Token::Value op, | 58 static Callable CompareIC(Isolate* isolate, Token::Value op, |
56 Strength strength); | 59 Strength strength); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 FunctionKind kind); | 92 FunctionKind kind); |
90 | 93 |
91 static Callable ArgumentsAccess(Isolate* isolate, bool is_unmapped_arguments, | 94 static Callable ArgumentsAccess(Isolate* isolate, bool is_unmapped_arguments, |
92 bool has_duplicate_parameters); | 95 bool has_duplicate_parameters); |
93 | 96 |
94 static Callable AllocateHeapNumber(Isolate* isolate); | 97 static Callable AllocateHeapNumber(Isolate* isolate); |
95 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 98 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
96 static Callable AllocateInNewSpace(Isolate* isolate); | 99 static Callable AllocateInNewSpace(Isolate* isolate); |
97 | 100 |
98 static Callable ArgumentAdaptor(Isolate* isolate); | 101 static Callable ArgumentAdaptor(Isolate* isolate); |
99 static Callable Call(Isolate* isolate); | 102 static Callable Call(Isolate* isolate, |
100 static Callable CallFunction(Isolate* isolate); | 103 ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
| 104 static Callable CallFunction( |
| 105 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
101 | 106 |
102 static Callable InterpreterPushArgsAndCall(Isolate* isolate); | 107 static Callable InterpreterPushArgsAndCall(Isolate* isolate); |
103 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 108 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
104 static Callable InterpreterCEntry(Isolate* isolate); | 109 static Callable InterpreterCEntry(Isolate* isolate); |
105 }; | 110 }; |
106 | 111 |
107 } // namespace internal | 112 } // namespace internal |
108 } // namespace v8 | 113 } // namespace v8 |
109 | 114 |
110 #endif // V8_CODE_FACTORY_H_ | 115 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |