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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 InlineCacheState initialization_state); | 55 InlineCacheState initialization_state); |
56 | 56 |
57 static Callable CompareIC(Isolate* isolate, Token::Value op, | 57 static Callable CompareIC(Isolate* isolate, Token::Value op, |
58 Strength strength); | 58 Strength strength); |
59 | 59 |
60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, | 60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, |
61 Strength strength); | 61 Strength strength); |
62 | 62 |
63 // Code stubs. Add methods here as needed to reduce dependency on | 63 // Code stubs. Add methods here as needed to reduce dependency on |
64 // code-stubs.h. | 64 // code-stubs.h. |
65 static Callable LoadGlobalViaContext(Isolate* isolate, int depth); | |
66 static Callable StoreGlobalViaContext(Isolate* isolate, int depth, | |
67 LanguageMode language_mode); | |
68 | |
69 static Callable InstanceOf(Isolate* isolate); | 65 static Callable InstanceOf(Isolate* isolate); |
70 | 66 |
71 static Callable ToBoolean( | 67 static Callable ToBoolean( |
72 Isolate* isolate, ToBooleanStub::ResultMode mode, | 68 Isolate* isolate, ToBooleanStub::ResultMode mode, |
73 ToBooleanStub::Types types = ToBooleanStub::Types()); | 69 ToBooleanStub::Types types = ToBooleanStub::Types()); |
74 | 70 |
75 static Callable ToNumber(Isolate* isolate); | 71 static Callable ToNumber(Isolate* isolate); |
76 static Callable ToString(Isolate* isolate); | 72 static Callable ToString(Isolate* isolate); |
77 static Callable ToLength(Isolate* isolate); | 73 static Callable ToLength(Isolate* isolate); |
78 static Callable ToObject(Isolate* isolate); | 74 static Callable ToObject(Isolate* isolate); |
(...skipping 25 matching lines...) Expand all Loading... |
104 | 100 |
105 static Callable InterpreterPushArgsAndCall(Isolate* isolate); | 101 static Callable InterpreterPushArgsAndCall(Isolate* isolate); |
106 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 102 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
107 static Callable InterpreterCEntry(Isolate* isolate); | 103 static Callable InterpreterCEntry(Isolate* isolate); |
108 }; | 104 }; |
109 | 105 |
110 } // namespace internal | 106 } // namespace internal |
111 } // namespace v8 | 107 } // namespace v8 |
112 | 108 |
113 #endif // V8_CODE_FACTORY_H_ | 109 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |