Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: src/compiler/code-assembler.h

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Add implementation todos Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/code-assembler.cc » ('j') | src/compiler/ffi-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698