diff options
Diffstat (limited to 'deps/v8/src/compiler/raw-machine-assembler.h')
-rw-r--r-- | deps/v8/src/compiler/raw-machine-assembler.h | 64 |
1 files changed, 21 insertions, 43 deletions
diff --git a/deps/v8/src/compiler/raw-machine-assembler.h b/deps/v8/src/compiler/raw-machine-assembler.h index 6d2accb861..af36b8c08a 100644 --- a/deps/v8/src/compiler/raw-machine-assembler.h +++ b/deps/v8/src/compiler/raw-machine-assembler.h @@ -653,6 +653,12 @@ class V8_EXPORT_PRIVATE RawMachineAssembler { Node* Float64RoundTiesEven(Node* a) { return AddNode(machine()->Float64RoundTiesEven().op(), a); } + Node* Word32ReverseBytes(Node* a) { + return AddNode(machine()->Word32ReverseBytes().op(), a); + } + Node* Word64ReverseBytes(Node* a) { + return AddNode(machine()->Word64ReverseBytes().op(), a); + } // Float64 bit operations. Node* Float64ExtractLowWord32(Node* a) { @@ -701,26 +707,18 @@ class V8_EXPORT_PRIVATE RawMachineAssembler { } // Call a given call descriptor and the given arguments. - Node* CallN(CallDescriptor* desc, Node* function, Node** args); + // The call target is passed as part of the {inputs} array. + Node* CallN(CallDescriptor* desc, int input_count, Node* const* inputs); + // Call a given call descriptor and the given arguments and frame-state. - Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args, - Node* frame_state); - // Call to a runtime function with zero arguments. - Node* CallRuntime0(Runtime::FunctionId function, Node* context); - // Call to a runtime function with one arguments. - Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context); - // Call to a runtime function with two arguments. - Node* CallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* context); - // Call to a runtime function with three arguments. - Node* CallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* context); - // Call to a runtime function with four arguments. - Node* CallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* arg4, Node* context); - // Call to a runtime function with five arguments. - Node* CallRuntime5(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* arg4, Node* arg5, Node* context); + // The call target and frame state are passed as part of the {inputs} array. + Node* CallNWithFrameState(CallDescriptor* desc, int input_count, + Node* const* inputs); + + // Tail call a given call descriptor and the given arguments. + // The call target is passed as part of the {inputs} array. + Node* TailCallN(CallDescriptor* desc, int input_count, Node* const* inputs); + // Call to a C function with zero arguments. Node* CallCFunction0(MachineType return_type, Node* function); // Call to a C function with one parameter. @@ -730,6 +728,10 @@ class V8_EXPORT_PRIVATE RawMachineAssembler { Node* CallCFunction2(MachineType return_type, MachineType arg0_type, MachineType arg1_type, Node* function, Node* arg0, Node* arg1); + // Call to a C function with three arguments. + Node* CallCFunction3(MachineType return_type, MachineType arg0_type, + MachineType arg1_type, MachineType arg2_type, + Node* function, Node* arg0, Node* arg1, Node* arg2); // Call to a C function with eight arguments. Node* CallCFunction8(MachineType return_type, MachineType arg0_type, MachineType arg1_type, MachineType arg2_type, @@ -739,30 +741,6 @@ class V8_EXPORT_PRIVATE RawMachineAssembler { Node* arg1, Node* arg2, Node* arg3, Node* arg4, Node* arg5, Node* arg6, Node* arg7); - // Tail call the given call descriptor and the given arguments. - Node* TailCallN(CallDescriptor* call_descriptor, Node* function, Node** args); - // Tail call to a runtime function with zero arguments. - Node* TailCallRuntime0(Runtime::FunctionId function, Node* context); - // Tail call to a runtime function with one argument. - Node* TailCallRuntime1(Runtime::FunctionId function, Node* arg0, - Node* context); - // Tail call to a runtime function with two arguments. - Node* TailCallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* context); - // Tail call to a runtime function with three arguments. - Node* TailCallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* context); - // Tail call to a runtime function with four arguments. - Node* TailCallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* arg4, Node* context); - // Tail call to a runtime function with five arguments. - Node* TailCallRuntime5(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* arg4, Node* arg5, Node* context); - // Tail call to a runtime function with six arguments. - Node* TailCallRuntime6(Runtime::FunctionId function, Node* arg1, Node* arg2, - Node* arg3, Node* arg4, Node* arg5, Node* arg6, - Node* context); - // =========================================================================== // The following utility methods deal with control flow, hence might switch // the current basic block or create new basic blocks for labels. |