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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 static Callable CallICInOptimizedCode(Isolate* isolate, int argc, | 45 static Callable CallICInOptimizedCode(Isolate* isolate, int argc, |
46 CallICState::CallType call_type); | 46 CallICState::CallType call_type); |
47 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 47 static Callable StoreIC(Isolate* isolate, LanguageMode mode); |
48 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 48 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); |
49 static Callable KeyedStoreICInOptimizedCode( | 49 static Callable KeyedStoreICInOptimizedCode( |
50 Isolate* isolate, LanguageMode mode, | 50 Isolate* isolate, LanguageMode mode, |
51 InlineCacheState initialization_state); | 51 InlineCacheState initialization_state); |
52 | 52 |
53 static Callable CompareIC(Isolate* isolate, Token::Value op); | 53 static Callable CompareIC(Isolate* isolate, Token::Value op); |
54 | 54 |
55 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); | 55 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, |
| 56 LanguageMode language_mode); |
56 | 57 |
57 // Code stubs. Add methods here as needed to reduce dependency on | 58 // Code stubs. Add methods here as needed to reduce dependency on |
58 // code-stubs.h. | 59 // code-stubs.h. |
59 static Callable ToBoolean( | 60 static Callable ToBoolean( |
60 Isolate* isolate, ToBooleanStub::ResultMode mode, | 61 Isolate* isolate, ToBooleanStub::ResultMode mode, |
61 ToBooleanStub::Types types = ToBooleanStub::Types()); | 62 ToBooleanStub::Types types = ToBooleanStub::Types()); |
62 | 63 |
63 static Callable ToNumber(Isolate* isolate); | 64 static Callable ToNumber(Isolate* isolate); |
64 | 65 |
65 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, | 66 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, |
66 PretenureFlag pretenure_flag); | 67 PretenureFlag pretenure_flag); |
67 | 68 |
68 static Callable FastCloneShallowArray(Isolate* isolate); | 69 static Callable FastCloneShallowArray(Isolate* isolate); |
69 static Callable FastCloneShallowObject(Isolate* isolate, int length); | 70 static Callable FastCloneShallowObject(Isolate* isolate, int length); |
70 | 71 |
71 static Callable AllocateHeapNumber(Isolate* isolate); | 72 static Callable AllocateHeapNumber(Isolate* isolate); |
72 | 73 |
73 static Callable CallFunction(Isolate* isolate, int argc, | 74 static Callable CallFunction(Isolate* isolate, int argc, |
74 CallFunctionFlags flags); | 75 CallFunctionFlags flags); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace internal | 78 } // namespace internal |
78 } // namespace v8 | 79 } // namespace v8 |
79 | 80 |
80 #endif // V8_CODE_FACTORY_H_ | 81 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |