aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc')
-rw-r--r--deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc33
1 files changed, 21 insertions, 12 deletions
diff --git a/deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc b/deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc
index d982605efc..99d3b0fa0f 100644
--- a/deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc
+++ b/deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc
@@ -447,11 +447,13 @@ void VisitTryTruncateDouble(InstructionSelector* selector, ArchOpcode opcode,
#endif
template <class CanCombineWithLoad>
-void GenerateRightOperands(InstructionSelector* selector, Node* node,
- Node* right, InstructionCode& opcode,
- OperandModes& operand_mode,
- InstructionOperand* inputs, size_t& input_count,
- CanCombineWithLoad canCombineWithLoad) {
+void GenerateRightOperands(
+ InstructionSelector* selector, Node* node, Node* right,
+ InstructionCode& opcode, // NOLINT(runtime/references)
+ OperandModes& operand_mode, // NOLINT(runtime/references)
+ InstructionOperand* inputs,
+ size_t& input_count, // NOLINT(runtime/references)
+ CanCombineWithLoad canCombineWithLoad) {
S390OperandGenerator g(selector);
if ((operand_mode & OperandMode::kAllowImmediate) &&
@@ -491,11 +493,13 @@ void GenerateRightOperands(InstructionSelector* selector, Node* node,
}
template <class CanCombineWithLoad>
-void GenerateBinOpOperands(InstructionSelector* selector, Node* node,
- Node* left, Node* right, InstructionCode& opcode,
- OperandModes& operand_mode,
- InstructionOperand* inputs, size_t& input_count,
- CanCombineWithLoad canCombineWithLoad) {
+void GenerateBinOpOperands(
+ InstructionSelector* selector, Node* node, Node* left, Node* right,
+ InstructionCode& opcode, // NOLINT(runtime/references)
+ OperandModes& operand_mode, // NOLINT(runtime/references)
+ InstructionOperand* inputs,
+ size_t& input_count, // NOLINT(runtime/references)
+ CanCombineWithLoad canCombineWithLoad) {
S390OperandGenerator g(selector);
// left is always register
InstructionOperand const left_input = g.UseRegister(left);
@@ -686,9 +690,9 @@ void InstructionSelector::VisitStackSlot(Node* node) {
sequence()->AddImmediate(Constant(slot)), 0, nullptr);
}
-void InstructionSelector::VisitDebugAbort(Node* node) {
+void InstructionSelector::VisitAbortCSAAssert(Node* node) {
S390OperandGenerator g(this);
- Emit(kArchDebugAbort, g.NoOutput(), g.UseFixed(node->InputAt(0), r3));
+ Emit(kArchAbortCSAAssert, g.NoOutput(), g.UseFixed(node->InputAt(0), r3));
}
void InstructionSelector::VisitLoad(Node* node) {
@@ -2194,6 +2198,11 @@ void InstructionSelector::EmitPrepareArguments(
}
}
+void InstructionSelector::VisitMemoryBarrier(Node* node) {
+ S390OperandGenerator g(this);
+ Emit(kArchNop, g.NoOutput());
+}
+
bool InstructionSelector::IsTailCallAddressImmediate() { return false; }
int InstructionSelector::GetTempsCountForTailCallFromJSFunction() { return 3; }