[cleanup] Remove sloppy-ness from SetAccumulator
Bug: v8:9810 Change-Id: I7bf617680e2e4029553d44ae4d11990ffd7a8a7a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914212 Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org> Cr-Commit-Position: refs/heads/master@{#64949}
This commit is contained in:
parent
7186b60147
commit
03b2be79c0
@ -157,8 +157,7 @@ TNode<Object> InterpreterAssembler::GetAccumulator() {
|
||||
return TaggedPoisonOnSpeculation(GetAccumulatorUnchecked());
|
||||
}
|
||||
|
||||
// TODO(v8:6949): Remove sloppy-ness from SetAccumulator's value argument.
|
||||
void InterpreterAssembler::SetAccumulator(SloppyTNode<Object> value) {
|
||||
void InterpreterAssembler::SetAccumulator(TNode<Object> value) {
|
||||
DCHECK(Bytecodes::WritesAccumulator(bytecode_));
|
||||
accumulator_use_ = accumulator_use_ | AccumulatorUse::kWrite;
|
||||
accumulator_ = value;
|
||||
|
@ -67,7 +67,7 @@ class V8_EXPORT_PRIVATE InterpreterAssembler : public CodeStubAssembler {
|
||||
TNode<Uint32T> BytecodeOperandIntrinsicId(int operand_index);
|
||||
// Accumulator.
|
||||
TNode<Object> GetAccumulator();
|
||||
void SetAccumulator(SloppyTNode<Object> value);
|
||||
void SetAccumulator(TNode<Object> value);
|
||||
|
||||
// Context.
|
||||
TNode<Context> GetContext();
|
||||
|
@ -1692,7 +1692,7 @@ IGNITION_HANDLER(CallRuntime, InterpreterAssembler) {
|
||||
TNode<Uint32T> function_id = BytecodeOperandRuntimeId(0);
|
||||
RegListNodePair args = GetRegisterListAtOperandIndex(1);
|
||||
TNode<Context> context = GetContext();
|
||||
Node* result = CallRuntimeN(function_id, context, args);
|
||||
TNode<Object> result = CAST(CallRuntimeN(function_id, context, args));
|
||||
SetAccumulator(result);
|
||||
Dispatch();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ InterpreterAssemblerTest::InterpreterAssemblerForTest::
|
||||
GetAccumulator();
|
||||
}
|
||||
if (Bytecodes::WritesAccumulator(bytecode())) {
|
||||
SetAccumulator(nullptr);
|
||||
SetAccumulator(NullConstant());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user