Commit aaa7a250 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

[csa][cleanup] Remove return values from Store operators

They are never used, and can't really be TNodified since they are
not a value output in any case.

BUG=v8:6949,v8:11074

Change-Id: Id6f5807247c6fe53fb12dce9e2cfc66b5a046398
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2532305
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Auto-Submit: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71133}
parent c2a7fac9
...@@ -708,8 +708,8 @@ TNode<Object> CodeAssembler::LoadRoot(RootIndex root_index) { ...@@ -708,8 +708,8 @@ TNode<Object> CodeAssembler::LoadRoot(RootIndex root_index) {
LoadFullTagged(isolate_root, IntPtrConstant(offset))); LoadFullTagged(isolate_root, IntPtrConstant(offset)));
} }
Node* CodeAssembler::Store(Node* base, Node* value) { void CodeAssembler::Store(Node* base, Node* value) {
return raw_assembler()->Store(MachineRepresentation::kTagged, base, value, raw_assembler()->Store(MachineRepresentation::kTagged, base, value,
kFullWriteBarrier); kFullWriteBarrier);
} }
...@@ -763,50 +763,50 @@ void CodeAssembler::OptimizedStoreMap(TNode<HeapObject> object, ...@@ -763,50 +763,50 @@ void CodeAssembler::OptimizedStoreMap(TNode<HeapObject> object,
raw_assembler()->OptimizedStoreMap(object, map); raw_assembler()->OptimizedStoreMap(object, map);
} }
Node* CodeAssembler::Store(Node* base, Node* offset, Node* value) { void CodeAssembler::Store(Node* base, Node* offset, Node* value) {
return raw_assembler()->Store(MachineRepresentation::kTagged, base, offset, raw_assembler()->Store(MachineRepresentation::kTagged, base, offset, value,
value, kFullWriteBarrier); kFullWriteBarrier);
} }
Node* CodeAssembler::StoreEphemeronKey(Node* base, Node* offset, Node* value) { void CodeAssembler::StoreEphemeronKey(Node* base, Node* offset, Node* value) {
return raw_assembler()->Store(MachineRepresentation::kTagged, base, offset, raw_assembler()->Store(MachineRepresentation::kTagged, base, offset, value,
value, kEphemeronKeyWriteBarrier); kEphemeronKeyWriteBarrier);
} }
Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, void CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base,
Node* value) { Node* value) {
return raw_assembler()->Store( raw_assembler()->Store(
rep, base, value, rep, base, value,
CanBeTaggedPointer(rep) ? kAssertNoWriteBarrier : kNoWriteBarrier); CanBeTaggedPointer(rep) ? kAssertNoWriteBarrier : kNoWriteBarrier);
} }
Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, void CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base,
Node* offset, Node* value) { Node* offset, Node* value) {
return raw_assembler()->Store( raw_assembler()->Store(
rep, base, offset, value, rep, base, offset, value,
CanBeTaggedPointer(rep) ? kAssertNoWriteBarrier : kNoWriteBarrier); CanBeTaggedPointer(rep) ? kAssertNoWriteBarrier : kNoWriteBarrier);
} }
Node* CodeAssembler::UnsafeStoreNoWriteBarrier(MachineRepresentation rep, void CodeAssembler::UnsafeStoreNoWriteBarrier(MachineRepresentation rep,
Node* base, Node* value) { Node* base, Node* value) {
return raw_assembler()->Store(rep, base, value, kNoWriteBarrier); raw_assembler()->Store(rep, base, value, kNoWriteBarrier);
} }
Node* CodeAssembler::UnsafeStoreNoWriteBarrier(MachineRepresentation rep, void CodeAssembler::UnsafeStoreNoWriteBarrier(MachineRepresentation rep,
Node* base, Node* offset, Node* base, Node* offset,
Node* value) { Node* value) {
return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier);
} }
Node* CodeAssembler::StoreFullTaggedNoWriteBarrier(Node* base, void CodeAssembler::StoreFullTaggedNoWriteBarrier(Node* base,
Node* tagged_value) { Node* tagged_value) {
return StoreNoWriteBarrier(MachineType::PointerRepresentation(), base, StoreNoWriteBarrier(MachineType::PointerRepresentation(), base,
BitcastTaggedToWord(tagged_value)); BitcastTaggedToWord(tagged_value));
} }
Node* CodeAssembler::StoreFullTaggedNoWriteBarrier(Node* base, Node* offset, void CodeAssembler::StoreFullTaggedNoWriteBarrier(Node* base, Node* offset,
Node* tagged_value) { Node* tagged_value) {
return StoreNoWriteBarrier(MachineType::PointerRepresentation(), base, offset, StoreNoWriteBarrier(MachineType::PointerRepresentation(), base, offset,
BitcastTaggedToWord(tagged_value)); BitcastTaggedToWord(tagged_value));
} }
...@@ -880,13 +880,12 @@ CodeAssembler::AtomicCompareExchange64<AtomicUint64>( ...@@ -880,13 +880,12 @@ CodeAssembler::AtomicCompareExchange64<AtomicUint64>(
TNode<UintPtrT> new_value, TNode<UintPtrT> old_value_high, TNode<UintPtrT> new_value, TNode<UintPtrT> old_value_high,
TNode<UintPtrT> new_value_high); TNode<UintPtrT> new_value_high);
Node* CodeAssembler::StoreRoot(RootIndex root_index, Node* value) { void CodeAssembler::StoreRoot(RootIndex root_index, Node* value) {
DCHECK(!RootsTable::IsImmortalImmovable(root_index)); DCHECK(!RootsTable::IsImmortalImmovable(root_index));
TNode<ExternalReference> isolate_root = TNode<ExternalReference> isolate_root =
ExternalConstant(ExternalReference::isolate_root(isolate())); ExternalConstant(ExternalReference::isolate_root(isolate()));
int offset = IsolateData::root_slot_offset(root_index); int offset = IsolateData::root_slot_offset(root_index);
return StoreFullTaggedNoWriteBarrier(isolate_root, IntPtrConstant(offset), StoreFullTaggedNoWriteBarrier(isolate_root, IntPtrConstant(offset), value);
value);
} }
Node* CodeAssembler::Projection(int index, Node* value) { Node* CodeAssembler::Projection(int index, Node* value) {
......
...@@ -767,21 +767,21 @@ class V8_EXPORT_PRIVATE CodeAssembler { ...@@ -767,21 +767,21 @@ class V8_EXPORT_PRIVATE CodeAssembler {
TNode<Object> LoadRoot(RootIndex root_index); TNode<Object> LoadRoot(RootIndex root_index);
// Store value to raw memory location. // Store value to raw memory location.
Node* Store(Node* base, Node* value); void Store(Node* base, Node* value);
Node* Store(Node* base, Node* offset, Node* value); void Store(Node* base, Node* offset, Node* value);
Node* StoreEphemeronKey(Node* base, Node* offset, Node* value); void StoreEphemeronKey(Node* base, Node* offset, Node* value);
Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); void StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value);
Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, void StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset,
Node* value); Node* value);
Node* UnsafeStoreNoWriteBarrier(MachineRepresentation rep, Node* base, void UnsafeStoreNoWriteBarrier(MachineRepresentation rep, Node* base,
Node* value); Node* value);
Node* UnsafeStoreNoWriteBarrier(MachineRepresentation rep, Node* base, void UnsafeStoreNoWriteBarrier(MachineRepresentation rep, Node* base,
Node* offset, Node* value); Node* offset, Node* value);
// Stores uncompressed tagged value to (most likely off JS heap) memory // Stores uncompressed tagged value to (most likely off JS heap) memory
// location without write barrier. // location without write barrier.
Node* StoreFullTaggedNoWriteBarrier(Node* base, Node* tagged_value); void StoreFullTaggedNoWriteBarrier(Node* base, Node* tagged_value);
Node* StoreFullTaggedNoWriteBarrier(Node* base, Node* offset, void StoreFullTaggedNoWriteBarrier(Node* base, Node* offset,
Node* tagged_value); Node* tagged_value);
// Optimized memory operations that map to Turbofan simplified nodes. // Optimized memory operations that map to Turbofan simplified nodes.
...@@ -859,7 +859,7 @@ class V8_EXPORT_PRIVATE CodeAssembler { ...@@ -859,7 +859,7 @@ class V8_EXPORT_PRIVATE CodeAssembler {
TNode<UintPtrT> new_value_high); TNode<UintPtrT> new_value_high);
// Store a value to the root array. // Store a value to the root array.
Node* StoreRoot(RootIndex root_index, Node* value); void StoreRoot(RootIndex root_index, Node* value);
// Basic arithmetic operations. // Basic arithmetic operations.
#define DECLARE_CODE_ASSEMBLER_BINARY_OP(name, ResType, Arg1Type, Arg2Type) \ #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name, ResType, Arg1Type, Arg2Type) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment