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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 static Callable FastNewRestParameter(Isolate* isolate); | 128 static Callable FastNewRestParameter(Isolate* isolate); |
129 static Callable FastNewSloppyArguments(Isolate* isolate); | 129 static Callable FastNewSloppyArguments(Isolate* isolate); |
130 static Callable FastNewStrictArguments(Isolate* isolate); | 130 static Callable FastNewStrictArguments(Isolate* isolate); |
131 | 131 |
132 static Callable AllocateHeapNumber(Isolate* isolate); | 132 static Callable AllocateHeapNumber(Isolate* isolate); |
133 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 133 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
134 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 134 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
135 static Callable Allocate##Type(Isolate* isolate); | 135 static Callable Allocate##Type(Isolate* isolate); |
136 SIMD128_TYPES(SIMD128_ALLOC) | 136 SIMD128_TYPES(SIMD128_ALLOC) |
137 #undef SIMD128_ALLOC | 137 #undef SIMD128_ALLOC |
138 static Callable Allocate(Isolate* isolate, PretenureFlag pretenure_flag); | |
139 | 138 |
140 static Callable ArgumentAdaptor(Isolate* isolate); | 139 static Callable ArgumentAdaptor(Isolate* isolate); |
141 static Callable Call(Isolate* isolate, | 140 static Callable Call(Isolate* isolate, |
142 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 141 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
143 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 142 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
144 static Callable CallFunction( | 143 static Callable CallFunction( |
145 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 144 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
146 static Callable Construct(Isolate* isolate); | 145 static Callable Construct(Isolate* isolate); |
147 static Callable ConstructFunction(Isolate* isolate); | 146 static Callable ConstructFunction(Isolate* isolate); |
148 | 147 |
149 static Callable InterpreterPushArgsAndCall(Isolate* isolate, | 148 static Callable InterpreterPushArgsAndCall(Isolate* isolate, |
150 TailCallMode tail_call_mode); | 149 TailCallMode tail_call_mode); |
151 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 150 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
152 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 151 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
153 }; | 152 }; |
154 | 153 |
155 } // namespace internal | 154 } // namespace internal |
156 } // namespace v8 | 155 } // namespace v8 |
157 | 156 |
158 #endif // V8_CODE_FACTORY_H_ | 157 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |