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

Unified Diff: src/compiler/code-assembler.cc

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Move FFIAssembler from .h to .cc 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index d075cdcc4e80d5b470d7554578a7af78b5b7fe73..99de1cef424003793501b1512ea1c7856a4c17e3 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -249,6 +249,13 @@ Node* CodeAssembler::Parameter(int value) {
return raw_assembler()->Parameter(value);
}
+Node* CodeAssembler::GetJSContextParameter() {
+ CallDescriptor* desc = raw_assembler()->call_descriptor();
+ DCHECK(desc->IsJSFunctionCall());
+ return Parameter(Linkage::GetJSCallContextParamIndex(
+ static_cast<int>(desc->JSParameterCount())));
+}
+
void CodeAssembler::Return(Node* value) {
return raw_assembler()->Return(value);
}
@@ -602,6 +609,12 @@ template V8_EXPORT_PRIVATE Node* CodeAssembler::TailCallBytecodeDispatch(
const CallInterfaceDescriptor& descriptor, Node* target, Node*, Node*,
Node*, Node*);
+Node* CodeAssembler::CallCFunctionN(Signature<MachineType>* signature,
+ int input_count, Node* const* inputs) {
+ CallDescriptor* desc = Linkage::GetSimplifiedCDescriptor(zone(), signature);
+ return raw_assembler()->CallN(desc, input_count, inputs);
+}
+
Node* CodeAssembler::CallCFunction2(MachineType return_type,
MachineType arg0_type,
MachineType arg1_type, Node* function,
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698