| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 50 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
| 51 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 51 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
| 52 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 52 static Callable StoreIC(Isolate* isolate, LanguageMode mode); |
| 53 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, | 53 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, |
| 54 InlineCacheState initialization_state); | 54 InlineCacheState initialization_state); |
| 55 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 55 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); |
| 56 static Callable KeyedStoreICInOptimizedCode( | 56 static Callable KeyedStoreICInOptimizedCode( |
| 57 Isolate* isolate, LanguageMode mode, | 57 Isolate* isolate, LanguageMode mode, |
| 58 InlineCacheState initialization_state); | 58 InlineCacheState initialization_state); |
| 59 | 59 |
| 60 static Callable CompareIC(Isolate* isolate, Token::Value op, | 60 static Callable CompareIC(Isolate* isolate, Token::Value op); |
| 61 Strength strength); | |
| 62 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); | 61 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); |
| 63 | 62 |
| 64 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, | 63 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); |
| 65 Strength strength); | |
| 66 | 64 |
| 67 // Code stubs. Add methods here as needed to reduce dependency on | 65 // Code stubs. Add methods here as needed to reduce dependency on |
| 68 // code-stubs.h. | 66 // code-stubs.h. |
| 69 static Callable InstanceOf(Isolate* isolate); | 67 static Callable InstanceOf(Isolate* isolate); |
| 70 | 68 |
| 71 static Callable ToBoolean(Isolate* isolate); | 69 static Callable ToBoolean(Isolate* isolate); |
| 72 | 70 |
| 73 static Callable ToNumber(Isolate* isolate); | 71 static Callable ToNumber(Isolate* isolate); |
| 74 static Callable ToString(Isolate* isolate); | 72 static Callable ToString(Isolate* isolate); |
| 75 static Callable ToName(Isolate* isolate); | 73 static Callable ToName(Isolate* isolate); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 110 |
| 113 static Callable InterpreterPushArgsAndCall(Isolate* isolate); | 111 static Callable InterpreterPushArgsAndCall(Isolate* isolate); |
| 114 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 112 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
| 115 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 113 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 } // namespace internal | 116 } // namespace internal |
| 119 } // namespace v8 | 117 } // namespace v8 |
| 120 | 118 |
| 121 #endif // V8_CODE_FACTORY_H_ | 119 #endif // V8_CODE_FACTORY_H_ |
| OLD | NEW |