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