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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 static Callable FastNewContext(Isolate* isolate, int slot_count); | 108 static Callable FastNewContext(Isolate* isolate, int slot_count); |
109 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, | 109 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, |
110 FunctionKind kind); | 110 FunctionKind kind); |
111 static Callable FastNewObject(Isolate* isolate); | 111 static Callable FastNewObject(Isolate* isolate); |
112 static Callable FastNewRestParameter(Isolate* isolate); | 112 static Callable FastNewRestParameter(Isolate* isolate); |
113 static Callable FastNewSloppyArguments(Isolate* isolate); | 113 static Callable FastNewSloppyArguments(Isolate* isolate); |
114 static Callable FastNewStrictArguments(Isolate* isolate); | 114 static Callable FastNewStrictArguments(Isolate* isolate); |
115 | 115 |
116 static Callable AllocateHeapNumber(Isolate* isolate); | 116 static Callable AllocateHeapNumber(Isolate* isolate); |
117 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 117 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
| 118 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
| 119 static Callable Allocate##Type(Isolate* isolate); |
| 120 SIMD128_TYPES(SIMD128_ALLOC) |
| 121 #undef SIMD128_ALLOC |
118 static Callable AllocateInNewSpace(Isolate* isolate); | 122 static Callable AllocateInNewSpace(Isolate* isolate); |
119 | 123 |
120 static Callable ArgumentAdaptor(Isolate* isolate); | 124 static Callable ArgumentAdaptor(Isolate* isolate); |
121 static Callable Call(Isolate* isolate, | 125 static Callable Call(Isolate* isolate, |
122 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 126 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
123 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 127 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
124 static Callable CallFunction( | 128 static Callable CallFunction( |
125 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 129 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
126 static Callable Construct(Isolate* isolate); | 130 static Callable Construct(Isolate* isolate); |
127 static Callable ConstructFunction(Isolate* isolate); | 131 static Callable ConstructFunction(Isolate* isolate); |
128 | 132 |
129 static Callable InterpreterPushArgsAndCall(Isolate* isolate, | 133 static Callable InterpreterPushArgsAndCall(Isolate* isolate, |
130 TailCallMode tail_call_mode); | 134 TailCallMode tail_call_mode); |
131 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 135 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
132 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 136 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
133 }; | 137 }; |
134 | 138 |
135 } // namespace internal | 139 } // namespace internal |
136 } // namespace v8 | 140 } // namespace v8 |
137 | 141 |
138 #endif // V8_CODE_FACTORY_H_ | 142 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |