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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 static Callable FastNewFunctionContext(Isolate* isolate); | 129 static Callable FastNewFunctionContext(Isolate* isolate); |
130 static Callable FastNewClosure(Isolate* isolate); | 130 static Callable FastNewClosure(Isolate* isolate); |
131 static Callable FastNewObject(Isolate* isolate); | 131 static Callable FastNewObject(Isolate* isolate); |
132 static Callable FastNewRestParameter(Isolate* isolate, | 132 static Callable FastNewRestParameter(Isolate* isolate, |
133 bool skip_stub_frame = false); | 133 bool skip_stub_frame = false); |
134 static Callable FastNewSloppyArguments(Isolate* isolate, | 134 static Callable FastNewSloppyArguments(Isolate* isolate, |
135 bool skip_stub_frame = false); | 135 bool skip_stub_frame = false); |
136 static Callable FastNewStrictArguments(Isolate* isolate, | 136 static Callable FastNewStrictArguments(Isolate* isolate, |
137 bool skip_stub_frame = false); | 137 bool skip_stub_frame = false); |
138 | 138 |
| 139 static Callable CopyFixedArray(Isolate* isolate); |
| 140 |
139 static Callable AllocateHeapNumber(Isolate* isolate); | 141 static Callable AllocateHeapNumber(Isolate* isolate); |
140 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 142 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
141 static Callable Allocate##Type(Isolate* isolate); | 143 static Callable Allocate##Type(Isolate* isolate); |
142 SIMD128_TYPES(SIMD128_ALLOC) | 144 SIMD128_TYPES(SIMD128_ALLOC) |
143 #undef SIMD128_ALLOC | 145 #undef SIMD128_ALLOC |
144 | 146 |
145 static Callable ArgumentAdaptor(Isolate* isolate); | 147 static Callable ArgumentAdaptor(Isolate* isolate); |
146 static Callable Call(Isolate* isolate, | 148 static Callable Call(Isolate* isolate, |
147 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 149 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
148 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 150 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
149 static Callable CallFunction( | 151 static Callable CallFunction( |
150 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 152 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
151 static Callable Construct(Isolate* isolate); | 153 static Callable Construct(Isolate* isolate); |
152 static Callable ConstructFunction(Isolate* isolate); | 154 static Callable ConstructFunction(Isolate* isolate); |
153 static Callable HasProperty(Isolate* isolate); | 155 static Callable HasProperty(Isolate* isolate); |
154 static Callable ForInFilter(Isolate* isolate); | 156 static Callable ForInFilter(Isolate* isolate); |
155 | 157 |
156 static Callable InterpreterPushArgsAndCall( | 158 static Callable InterpreterPushArgsAndCall( |
157 Isolate* isolate, TailCallMode tail_call_mode, | 159 Isolate* isolate, TailCallMode tail_call_mode, |
158 CallableType function_type = CallableType::kAny); | 160 CallableType function_type = CallableType::kAny); |
159 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 161 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
160 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 162 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
161 static Callable InterpreterOnStackReplacement(Isolate* isolate); | 163 static Callable InterpreterOnStackReplacement(Isolate* isolate); |
162 }; | 164 }; |
163 | 165 |
164 } // namespace internal | 166 } // namespace internal |
165 } // namespace v8 | 167 } // namespace v8 |
166 | 168 |
167 #endif // V8_CODE_FACTORY_H_ | 169 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |