diff options
Diffstat (limited to 'deps/v8/src/compiler/int64-lowering.cc')
-rw-r--r-- | deps/v8/src/compiler/int64-lowering.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/compiler/int64-lowering.cc b/deps/v8/src/compiler/int64-lowering.cc index ca1bf399b0..8248715876 100644 --- a/deps/v8/src/compiler/int64-lowering.cc +++ b/deps/v8/src/compiler/int64-lowering.cc @@ -149,7 +149,7 @@ void Int64Lowering::GetIndexNodes(Node* index, Node*& index_low, void Int64Lowering::LowerNode(Node* node) { switch (node->opcode()) { case IrOpcode::kInt64Constant: { - int64_t value = OpParameter<int64_t>(node); + int64_t value = OpParameter<int64_t>(node->op()); Node* low_node = graph()->NewNode( common()->Int32Constant(static_cast<int32_t>(value & 0xFFFFFFFF))); Node* high_node = graph()->NewNode( @@ -164,7 +164,7 @@ void Int64Lowering::LowerNode(Node* node) { rep = LoadRepresentationOf(node->op()).representation(); } else { DCHECK_EQ(IrOpcode::kUnalignedLoad, node->opcode()); - rep = UnalignedLoadRepresentationOf(node->op()).representation(); + rep = LoadRepresentationOf(node->op()).representation(); } if (rep == MachineRepresentation::kWord64) { @@ -281,15 +281,15 @@ void Int64Lowering::LowerNode(Node* node) { static_cast<int>(signature()->parameter_count())) { int old_index = ParameterIndexOf(node->op()); // TODO(wasm): Make this part not wasm specific. - // Prevent special lowering of the WasmContext parameter. - if (old_index == kWasmContextParameterIndex) { + // Prevent special lowering of the instance parameter. + if (old_index == kWasmInstanceParameterIndex) { DefaultLowering(node); break; } // Adjust old_index to be compliant with the signature. --old_index; int new_index = GetParameterIndexAfterLowering(signature(), old_index); - // Adjust new_index to consider the WasmContext parameter. + // Adjust new_index to consider the instance parameter. ++new_index; NodeProperties::ChangeOp(node, common()->Parameter(new_index)); |