Commit a245611a authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Remove obsolete {OptimizedCompilationInfo::wasm_code}.

R=clemensh@chromium.org

Change-Id: I2ec2fdb2406efeaf3b48d0c58711db7e5172aa58
Reviewed-on: https://chromium-review.googlesource.com/c/1335699
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57525}
parent 0b13f0f5
......@@ -2403,8 +2403,6 @@ wasm::WasmCode* Pipeline::GenerateCodeForWasmFunction(
json_of << "\n}";
}
info->SetCode(code);
if (data.info()->trace_turbo_json_enabled() ||
data.info()->trace_turbo_graph_enabled()) {
CodeTracer::Scope tracing_scope(data.GetCodeTracer());
......
......@@ -5315,11 +5315,11 @@ void TurbofanWasmCompilationUnit::ExecuteCompilation(
call_descriptor = GetI32WasmCallDescriptor(&zone, call_descriptor);
}
if (Pipeline::GenerateCodeForWasmFunction(
if (wasm::WasmCode* wasm_code = Pipeline::GenerateCodeForWasmFunction(
&info, wasm_unit_->wasm_engine_, mcgraph, call_descriptor,
source_positions, node_origins, func_body, wasm_unit_->native_module_,
wasm_unit_->func_index_)) {
wasm_unit_->SetResult(info.wasm_code(), counters);
wasm_unit_->SetResult(wasm_code, counters);
}
if (FLAG_trace_wasm_decode_time) {
double pipeline_ms = pipeline_timer.Elapsed().InMillisecondsF();
......
......@@ -8,7 +8,6 @@
#include <memory>
#include "src/bailout-reason.h"
#include "src/code-reference.h"
#include "src/frames.h"
#include "src/globals.h"
#include "src/handles.h"
......@@ -70,11 +69,7 @@ class V8_EXPORT_PRIVATE OptimizedCompilationInfo final {
Handle<SharedFunctionInfo> shared_info() const { return shared_info_; }
bool has_shared_info() const { return !shared_info().is_null(); }
Handle<JSFunction> closure() const { return closure_; }
Handle<Code> code() const { return code_.as_js_code(); }
wasm::WasmCode* wasm_code() const {
return const_cast<wasm::WasmCode*>(code_.as_wasm_code());
}
Handle<Code> code() const { return code_; }
Code::Kind code_kind() const { return code_kind_; }
uint32_t stub_key() const { return stub_key_; }
void set_stub_key(uint32_t stub_key) { stub_key_ = stub_key; }
......@@ -177,10 +172,7 @@ class V8_EXPORT_PRIVATE OptimizedCompilationInfo final {
// Code getters and setters.
template <typename T>
void SetCode(T code) {
code_ = CodeReference(code);
}
void SetCode(Handle<Code> code) { code_ = code; }
bool has_context() const;
Context* context() const;
......@@ -291,7 +283,7 @@ class V8_EXPORT_PRIVATE OptimizedCompilationInfo final {
Handle<JSFunction> closure_;
// The compiled code.
CodeReference code_;
Handle<Code> code_;
// Entry point when compiling for OSR, {BailoutId::None} otherwise.
BailoutId osr_offset_ = BailoutId::None();
......
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