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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 template <class... TArgs> | 303 template <class... TArgs> |
304 Node* CallRuntime(Runtime::FunctionId function, Node* context, TArgs... args); | 304 Node* CallRuntime(Runtime::FunctionId function, Node* context, TArgs... args); |
305 | 305 |
306 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context); | 306 template <class... TArgs> |
307 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | 307 Node* TailCallRuntime(Runtime::FunctionId function, Node* context, |
308 Node* arg1); | 308 TArgs... args); |
309 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | |
310 Node* arg1, Node* arg2); | |
311 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | |
312 Node* arg1, Node* arg2, Node* arg3); | |
313 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | |
314 Node* arg1, Node* arg2, Node* arg3, Node* arg4); | |
315 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | |
316 Node* arg1, Node* arg2, Node* arg3, Node* arg4, | |
317 Node* arg5); | |
318 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, | |
319 Node* arg1, Node* arg2, Node* arg3, Node* arg4, | |
320 Node* arg5, Node* arg6); | |
321 | 309 |
322 // A pair of a zero-based argument index and a value. | 310 // A pair of a zero-based argument index and a value. |
323 // It helps writing arguments order independent code. | 311 // It helps writing arguments order independent code. |
324 struct Arg { | 312 struct Arg { |
325 Arg(int index, Node* value) : index(index), value(value) {} | 313 Arg(int index, Node* value) : index(index), value(value) {} |
326 | 314 |
327 int const index; | 315 int const index; |
328 Node* const value; | 316 Node* const value; |
329 }; | 317 }; |
330 | 318 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 ZoneSet<CodeAssemblerVariable::Impl*> variables_; | 547 ZoneSet<CodeAssemblerVariable::Impl*> variables_; |
560 | 548 |
561 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 549 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
562 }; | 550 }; |
563 | 551 |
564 } // namespace compiler | 552 } // namespace compiler |
565 } // namespace internal | 553 } // namespace internal |
566 } // namespace v8 | 554 } // namespace v8 |
567 | 555 |
568 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 556 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |