Chromium Code Reviews| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 TArgs... args) { | 357 TArgs... args) { |
| 358 int argc = static_cast<int>(sizeof...(args)); | 358 int argc = static_cast<int>(sizeof...(args)); |
| 359 Node* arity = Int32Constant(argc); | 359 Node* arity = Int32Constant(argc); |
| 360 Node* receiver = LoadRoot(Heap::kUndefinedValueRootIndex); | 360 Node* receiver = LoadRoot(Heap::kUndefinedValueRootIndex); |
| 361 | 361 |
| 362 // Construct(target, new_target, arity, receiver, arguments...) | 362 // Construct(target, new_target, arity, receiver, arguments...) |
| 363 return CallStub(callable, context, new_target, new_target, arity, receiver, | 363 return CallStub(callable, context, new_target, new_target, arity, receiver, |
| 364 args...); | 364 args...); |
| 365 } | 365 } |
| 366 | 366 |
| 367 Node* CallCFunctionN(CallDescriptor* descriptor, int input_count, | |
|
Michael Starzinger
2017/01/16 12:10:11
The {compiler::CallDescriptor} struct is not avail
| |
| 368 Node* const* inputs); | |
| 369 | |
| 367 // Call to a C function with two arguments. | 370 // Call to a C function with two arguments. |
| 368 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, | 371 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, |
| 369 MachineType arg1_type, Node* function, Node* arg0, | 372 MachineType arg1_type, Node* function, Node* arg0, |
| 370 Node* arg1); | 373 Node* arg1); |
| 371 | 374 |
| 372 // Call to a C function with three arguments. | 375 // Call to a C function with three arguments. |
| 373 Node* CallCFunction3(MachineType return_type, MachineType arg0_type, | 376 Node* CallCFunction3(MachineType return_type, MachineType arg0_type, |
| 374 MachineType arg1_type, MachineType arg2_type, | 377 MachineType arg1_type, MachineType arg2_type, |
| 375 Node* function, Node* arg0, Node* arg1, Node* arg2); | 378 Node* function, Node* arg0, Node* arg1, Node* arg2); |
| 376 | 379 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 CodeAssemblerCallback call_epilogue_; | 504 CodeAssemblerCallback call_epilogue_; |
| 502 | 505 |
| 503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 506 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
| 504 }; | 507 }; |
| 505 | 508 |
| 506 } // namespace compiler | 509 } // namespace compiler |
| 507 } // namespace internal | 510 } // namespace internal |
| 508 } // namespace v8 | 511 } // namespace v8 |
| 509 | 512 |
| 510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 513 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |