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, |