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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 static Callable Typeof(Isolate* isolate); | 118 static Callable Typeof(Isolate* isolate); |
119 | 119 |
120 static Callable FastCloneRegExp(Isolate* isolate); | 120 static Callable FastCloneRegExp(Isolate* isolate); |
121 static Callable FastCloneShallowArray(Isolate* isolate); | 121 static Callable FastCloneShallowArray(Isolate* isolate); |
122 static Callable FastCloneShallowObject(Isolate* isolate, int length); | 122 static Callable FastCloneShallowObject(Isolate* isolate, int length); |
123 | 123 |
124 static Callable FastNewContext(Isolate* isolate, int slot_count); | 124 static Callable FastNewContext(Isolate* isolate, int slot_count); |
125 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, | 125 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, |
126 FunctionKind kind); | 126 FunctionKind kind); |
127 static Callable FastNewObject(Isolate* isolate); | 127 static Callable FastNewObject(Isolate* isolate); |
128 static Callable FastNewRestParameter(Isolate* isolate); | 128 static Callable FastNewRestParameter(Isolate* isolate, |
129 static Callable FastNewSloppyArguments(Isolate* isolate); | 129 bool skip_stub_frame = false); |
130 static Callable FastNewStrictArguments(Isolate* isolate); | 130 static Callable FastNewSloppyArguments(Isolate* isolate, |
| 131 bool skip_stub_frame = false); |
| 132 static Callable FastNewStrictArguments(Isolate* isolate, |
| 133 bool skip_stub_frame = false); |
131 | 134 |
132 static Callable AllocateHeapNumber(Isolate* isolate); | 135 static Callable AllocateHeapNumber(Isolate* isolate); |
133 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 136 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
134 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 137 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
135 static Callable Allocate##Type(Isolate* isolate); | 138 static Callable Allocate##Type(Isolate* isolate); |
136 SIMD128_TYPES(SIMD128_ALLOC) | 139 SIMD128_TYPES(SIMD128_ALLOC) |
137 #undef SIMD128_ALLOC | 140 #undef SIMD128_ALLOC |
138 | 141 |
139 static Callable ArgumentAdaptor(Isolate* isolate); | 142 static Callable ArgumentAdaptor(Isolate* isolate); |
140 static Callable Call(Isolate* isolate, | 143 static Callable Call(Isolate* isolate, |
141 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 144 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
142 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 145 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
143 static Callable CallFunction( | 146 static Callable CallFunction( |
144 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 147 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
145 static Callable Construct(Isolate* isolate); | 148 static Callable Construct(Isolate* isolate); |
146 static Callable ConstructFunction(Isolate* isolate); | 149 static Callable ConstructFunction(Isolate* isolate); |
147 static Callable HasProperty(Isolate* isolate); | 150 static Callable HasProperty(Isolate* isolate); |
148 | 151 |
149 static Callable InterpreterPushArgsAndCall(Isolate* isolate, | 152 static Callable InterpreterPushArgsAndCall(Isolate* isolate, |
150 TailCallMode tail_call_mode); | 153 TailCallMode tail_call_mode); |
151 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 154 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
152 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 155 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
153 }; | 156 }; |
154 | 157 |
155 } // namespace internal | 158 } // namespace internal |
156 } // namespace v8 | 159 } // namespace v8 |
157 | 160 |
158 #endif // V8_CODE_FACTORY_H_ | 161 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |