Commit a5024f9b authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[cleanup] Remove unused context parameters

These three wasm methods do not use the context, but were passed one:
 * WasmInt32ToHeapNumber
 * WasmFloat32ToNumber
 * WasmFloat64ToNumber

Bug: v8:6949, v8:10933
Change-Id: I55e4264f7e06f3fb8338df77d12132c938acfcff
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2445934Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70314}
parent c7c5d50d
......@@ -3667,12 +3667,9 @@ TEST(WasmInt32ToHeapNumber) {
int32_t test_value = test_values[i];
CodeAssemblerTester asm_tester(isolate, kNumParams);
CodeStubAssembler m(asm_tester.state());
// TODO(delphick): This isn't actually passing in a Context, so we can't use
// Parameter.
Node* context = m.UntypedParameter(kNumParams + 1);
const TNode<Int32T> arg = m.Int32Constant(test_value);
const TNode<Object> call_result =
m.CallBuiltin(Builtins::kWasmInt32ToHeapNumber, context, arg);
const TNode<Object> call_result = m.CallBuiltin(
Builtins::kWasmInt32ToHeapNumber, m.NoContextConstant(), arg);
m.Return(call_result);
FunctionTester ft(asm_tester.GenerateCode(), kNumParams);
......@@ -3756,12 +3753,9 @@ TEST(WasmFloat32ToNumber) {
double test_value = test_values[i];
CodeAssemblerTester asm_tester(isolate, kNumParams);
CodeStubAssembler m(asm_tester.state());
// TODO(delphick): This isn't actually passing in a Context, so we can't use
// Parameter.
Node* context = m.UntypedParameter(kNumParams + 1);
const TNode<Float32T> arg = m.Float32Constant(test_value);
const TNode<Object> call_result =
m.CallBuiltin(Builtins::kWasmFloat32ToNumber, context, arg);
const TNode<Object> call_result = m.CallBuiltin(
Builtins::kWasmFloat32ToNumber, m.NoContextConstant(), arg);
m.Return(call_result);
FunctionTester ft(asm_tester.GenerateCode(), kNumParams);
......@@ -3799,12 +3793,9 @@ TEST(WasmFloat64ToNumber) {
double test_value = test_values[i];
CodeAssemblerTester asm_tester(isolate, kNumParams);
CodeStubAssembler m(asm_tester.state());
// TODO(delphick): This isn't actually passing in a Context, so we can't use
// Parameter.
Node* context = m.UntypedParameter(kNumParams + 1);
const TNode<Float64T> arg = m.Float64Constant(test_value);
const TNode<Object> call_result =
m.CallBuiltin(Builtins::kWasmFloat64ToNumber, context, arg);
const TNode<Object> call_result = m.CallBuiltin(
Builtins::kWasmFloat64ToNumber, m.NoContextConstant(), arg);
m.Return(call_result);
FunctionTester ft(asm_tester.GenerateCode(), kNumParams);
......
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