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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 47 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
48 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 48 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); |
50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, | 50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, |
51 InlineCacheState initialization_state); | 51 InlineCacheState initialization_state); |
52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); |
53 static Callable KeyedStoreICInOptimizedCode( | 53 static Callable KeyedStoreICInOptimizedCode( |
54 Isolate* isolate, LanguageMode mode, | 54 Isolate* isolate, LanguageMode mode, |
55 InlineCacheState initialization_state); | 55 InlineCacheState initialization_state); |
56 | 56 |
57 static Callable StoreInterceptor(Isolate* isolate); | |
58 | |
59 static Callable ResumeGenerator(Isolate* isolate); | 57 static Callable ResumeGenerator(Isolate* isolate); |
60 | 58 |
61 static Callable CompareIC(Isolate* isolate, Token::Value op); | 59 static Callable CompareIC(Isolate* isolate, Token::Value op); |
62 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); | 60 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); |
63 | 61 |
64 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); | 62 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); |
65 | 63 |
66 // Code stubs. Add methods here as needed to reduce dependency on | 64 // Code stubs. Add methods here as needed to reduce dependency on |
67 // code-stubs.h. | 65 // code-stubs.h. |
68 static Callable InstanceOf(Isolate* isolate); | 66 static Callable InstanceOf(Isolate* isolate); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 static Callable InterpreterPushArgsAndCall(Isolate* isolate, | 141 static Callable InterpreterPushArgsAndCall(Isolate* isolate, |
144 TailCallMode tail_call_mode); | 142 TailCallMode tail_call_mode); |
145 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 143 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
146 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 144 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
147 }; | 145 }; |
148 | 146 |
149 } // namespace internal | 147 } // namespace internal |
150 } // namespace v8 | 148 } // namespace v8 |
151 | 149 |
152 #endif // V8_CODE_FACTORY_H_ | 150 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |