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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // code-stubs.h. | 59 // code-stubs.h. |
60 static Callable ToBoolean( | 60 static Callable ToBoolean( |
61 Isolate* isolate, ToBooleanStub::ResultMode mode, | 61 Isolate* isolate, ToBooleanStub::ResultMode mode, |
62 ToBooleanStub::Types types = ToBooleanStub::Types()); | 62 ToBooleanStub::Types types = ToBooleanStub::Types()); |
63 | 63 |
64 static Callable ToNumber(Isolate* isolate); | 64 static Callable ToNumber(Isolate* isolate); |
65 | 65 |
66 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, | 66 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, |
67 PretenureFlag pretenure_flag); | 67 PretenureFlag pretenure_flag); |
68 | 68 |
| 69 static Callable Typeof(Isolate* isolate); |
| 70 |
69 static Callable FastCloneShallowArray(Isolate* isolate); | 71 static Callable FastCloneShallowArray(Isolate* isolate); |
70 static Callable FastCloneShallowObject(Isolate* isolate, int length); | 72 static Callable FastCloneShallowObject(Isolate* isolate, int length); |
71 | 73 |
72 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, | 74 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, |
73 FunctionKind kind); | 75 FunctionKind kind); |
74 | 76 |
75 static Callable AllocateHeapNumber(Isolate* isolate); | 77 static Callable AllocateHeapNumber(Isolate* isolate); |
76 | 78 |
77 static Callable CallFunction(Isolate* isolate, int argc, | 79 static Callable CallFunction(Isolate* isolate, int argc, |
78 CallFunctionFlags flags); | 80 CallFunctionFlags flags); |
79 }; | 81 }; |
80 | 82 |
81 } // namespace internal | 83 } // namespace internal |
82 } // namespace v8 | 84 } // namespace v8 |
83 | 85 |
84 #endif // V8_CODE_FACTORY_H_ | 86 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |