OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 Node* ChangeInt32ToIntPtr(Node* value); | 293 Node* ChangeInt32ToIntPtr(Node* value); |
294 | 294 |
295 // No-op that guarantees that the value is kept alive till this point even | 295 // No-op that guarantees that the value is kept alive till this point even |
296 // if GC happens. | 296 // if GC happens. |
297 Node* Retain(Node* value); | 297 Node* Retain(Node* value); |
298 | 298 |
299 // Projections | 299 // Projections |
300 Node* Projection(int index, Node* value); | 300 Node* Projection(int index, Node* value); |
301 | 301 |
302 // Calls | 302 // Calls |
303 Node* CallRuntime(Runtime::FunctionId function_id, Node* context); | 303 template <class... TArgs> |
304 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1); | 304 Node* CallRuntime(Runtime::FunctionId function, Node* context, TArgs... args); |
305 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, | |
306 Node* arg2); | |
307 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, | |
308 Node* arg2, Node* arg3); | |
309 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, | |
310 Node* arg2, Node* arg3, Node* arg4); | |
311 Node* CallRuntime(Runtime::FunctionId function_id, Node* context, Node* arg1, | |
312 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | |
313 | 305 |
314 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context); | 306 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context); |
315 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | 307 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, |
316 Node* arg1); | 308 Node* arg1); |
317 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | 309 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, |
318 Node* arg1, Node* arg2); | 310 Node* arg1, Node* arg2); |
319 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | 311 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, |
320 Node* arg1, Node* arg2, Node* arg3); | 312 Node* arg1, Node* arg2, Node* arg3); |
321 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | 313 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, |
322 Node* arg1, Node* arg2, Node* arg3, Node* arg4); | 314 Node* arg1, Node* arg2, Node* arg3, Node* arg4); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 ZoneSet<CodeAssemblerVariable::Impl*> variables_; | 559 ZoneSet<CodeAssemblerVariable::Impl*> variables_; |
568 | 560 |
569 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 561 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
570 }; | 562 }; |
571 | 563 |
572 } // namespace compiler | 564 } // namespace compiler |
573 } // namespace internal | 565 } // namespace internal |
574 } // namespace v8 | 566 } // namespace v8 |
575 | 567 |
576 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 568 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |