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 | |
141 static Callable AllocateHeapNumber(Isolate* isolate); | 139 static Callable AllocateHeapNumber(Isolate* isolate); |
142 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 140 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
143 static Callable Allocate##Type(Isolate* isolate); | 141 static Callable Allocate##Type(Isolate* isolate); |
144 SIMD128_TYPES(SIMD128_ALLOC) | 142 SIMD128_TYPES(SIMD128_ALLOC) |
145 #undef SIMD128_ALLOC | 143 #undef SIMD128_ALLOC |
146 | 144 |
147 static Callable ArgumentAdaptor(Isolate* isolate); | 145 static Callable ArgumentAdaptor(Isolate* isolate); |
148 static Callable Call(Isolate* isolate, | 146 static Callable Call(Isolate* isolate, |
149 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 147 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
150 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 148 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
151 static Callable CallFunction( | 149 static Callable CallFunction( |
152 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 150 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
153 static Callable Construct(Isolate* isolate); | 151 static Callable Construct(Isolate* isolate); |
154 static Callable ConstructFunction(Isolate* isolate); | 152 static Callable ConstructFunction(Isolate* isolate); |
155 static Callable HasProperty(Isolate* isolate); | 153 static Callable HasProperty(Isolate* isolate); |
156 static Callable ForInFilter(Isolate* isolate); | 154 static Callable ForInFilter(Isolate* isolate); |
157 | 155 |
158 static Callable InterpreterPushArgsAndCall( | 156 static Callable InterpreterPushArgsAndCall( |
159 Isolate* isolate, TailCallMode tail_call_mode, | 157 Isolate* isolate, TailCallMode tail_call_mode, |
160 CallableType function_type = CallableType::kAny); | 158 CallableType function_type = CallableType::kAny); |
161 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 159 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
162 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 160 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
163 static Callable InterpreterOnStackReplacement(Isolate* isolate); | 161 static Callable InterpreterOnStackReplacement(Isolate* isolate); |
164 }; | 162 }; |
165 | 163 |
166 } // namespace internal | 164 } // namespace internal |
167 } // namespace v8 | 165 } // namespace v8 |
168 | 166 |
169 #endif // V8_CODE_FACTORY_H_ | 167 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |