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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 Strength strength); | 60 Strength strength); |
61 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); | 61 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); |
62 | 62 |
63 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, | 63 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, |
64 Strength strength); | 64 Strength strength); |
65 | 65 |
66 // Code stubs. Add methods here as needed to reduce dependency on | 66 // Code stubs. Add methods here as needed to reduce dependency on |
67 // code-stubs.h. | 67 // code-stubs.h. |
68 static Callable InstanceOf(Isolate* isolate); | 68 static Callable InstanceOf(Isolate* isolate); |
69 | 69 |
70 static Callable ToBoolean( | 70 static Callable ToBoolean(Isolate* isolate); |
71 Isolate* isolate, ToBooleanStub::ResultMode mode, | |
72 ToBooleanStub::Types types = ToBooleanStub::Types()); | |
73 | 71 |
74 static Callable ToNumber(Isolate* isolate); | 72 static Callable ToNumber(Isolate* isolate); |
75 static Callable ToString(Isolate* isolate); | 73 static Callable ToString(Isolate* isolate); |
76 static Callable ToLength(Isolate* isolate); | 74 static Callable ToLength(Isolate* isolate); |
77 static Callable ToObject(Isolate* isolate); | 75 static Callable ToObject(Isolate* isolate); |
78 static Callable NumberToString(Isolate* isolate); | 76 static Callable NumberToString(Isolate* isolate); |
79 | 77 |
80 static Callable RegExpConstructResult(Isolate* isolate); | 78 static Callable RegExpConstructResult(Isolate* isolate); |
81 | 79 |
82 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, | 80 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, |
(...skipping 26 matching lines...) Expand all Loading... |
109 | 107 |
110 static Callable InterpreterPushArgsAndCall(Isolate* isolate); | 108 static Callable InterpreterPushArgsAndCall(Isolate* isolate); |
111 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 109 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
112 static Callable InterpreterCEntry(Isolate* isolate); | 110 static Callable InterpreterCEntry(Isolate* isolate); |
113 }; | 111 }; |
114 | 112 |
115 } // namespace internal | 113 } // namespace internal |
116 } // namespace v8 | 114 } // namespace v8 |
117 | 115 |
118 #endif // V8_CODE_FACTORY_H_ | 116 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |