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