Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index c699439e1872b30a21f4e51be248e8d844f0948b..d6dd893064d71627f332fa42393ae090e1545713 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -495,17 +495,12 @@ class WasmFunctionCompiler : public HandleAndZoneScope, |
Handle<Code> code = info.code(); |
// Length is always 2, since usually <wasm_obj, func_index> is stored in the |
- // deopt data. Here, we store <func_name, undef> instead. |
+ // deopt data. Here, we only store the function index. |
DCHECK(code->deoptimization_data() == nullptr || |
code->deoptimization_data()->length() == 0); |
Handle<FixedArray> deopt_data = |
isolate()->factory()->NewFixedArray(2, TENURED); |
- if (debug_name_.start() != nullptr) { |
- MaybeHandle<String> maybe_name = |
- isolate()->factory()->NewStringFromUtf8(debug_name_, TENURED); |
- if (!maybe_name.is_null()) |
- deopt_data->set(0, *maybe_name.ToHandleChecked()); |
- } |
+ deopt_data->set(1, Smi::FromInt(function_index_)); |
deopt_data->set_length(2); |
code->set_deoptimization_data(*deopt_data); |