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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 static Callable FastNewContext(Isolate* isolate, int slot_count); | 89 static Callable FastNewContext(Isolate* isolate, int slot_count); |
90 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, | 90 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, |
91 FunctionKind kind); | 91 FunctionKind kind); |
92 static Callable FastNewRestParameter(Isolate* isolate); | 92 static Callable FastNewRestParameter(Isolate* isolate); |
93 static Callable FastNewSloppyArguments(Isolate* isolate); | 93 static Callable FastNewSloppyArguments(Isolate* isolate); |
94 static Callable FastNewStrictArguments(Isolate* isolate); | 94 static Callable FastNewStrictArguments(Isolate* isolate); |
95 | 95 |
96 static Callable AllocateHeapNumber(Isolate* isolate); | 96 static Callable AllocateHeapNumber(Isolate* isolate); |
97 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 97 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
| 98 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
| 99 static Callable Allocate##Type(Isolate* isolate); |
| 100 SIMD128_TYPES(SIMD128_ALLOC) |
| 101 #undef SIMD128_ALLOC |
98 static Callable AllocateInNewSpace(Isolate* isolate); | 102 static Callable AllocateInNewSpace(Isolate* isolate); |
99 | 103 |
100 static Callable ArgumentAdaptor(Isolate* isolate); | 104 static Callable ArgumentAdaptor(Isolate* isolate); |
101 static Callable Call(Isolate* isolate, | 105 static Callable Call(Isolate* isolate, |
102 ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 106 ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
103 static Callable CallFunction( | 107 static Callable CallFunction( |
104 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 108 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
105 static Callable Construct(Isolate* isolate); | 109 static Callable Construct(Isolate* isolate); |
106 static Callable ConstructFunction(Isolate* isolate); | 110 static Callable ConstructFunction(Isolate* isolate); |
107 | 111 |
108 static Callable InterpreterPushArgsAndCall(Isolate* isolate, | 112 static Callable InterpreterPushArgsAndCall(Isolate* isolate, |
109 TailCallMode tail_call_mode); | 113 TailCallMode tail_call_mode); |
110 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 114 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
111 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 115 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
112 }; | 116 }; |
113 | 117 |
114 } // namespace internal | 118 } // namespace internal |
115 } // namespace v8 | 119 } // namespace v8 |
116 | 120 |
117 #endif // V8_CODE_FACTORY_H_ | 121 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |