Commit 82535f12 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Remove remnants of {WasmCompiledModule} handling.

R=titzer@chromium.org

Change-Id: Ia1eca39add782c5af27f12c2bb450cc7837a4251
Reviewed-on: https://chromium-review.googlesource.com/1113678Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54017}
parent 588e1794
......@@ -1805,10 +1805,6 @@ WasmModuleObject* WasmCompiledFrame::module_object() const {
return wasm_instance()->module_object();
}
WasmCompiledModule* WasmCompiledFrame::compiled_module() const {
return wasm_instance()->compiled_module();
}
uint32_t WasmCompiledFrame::function_index() const {
return FrameSummary::GetSingle(this).AsWasmCompiled().function_index();
}
......@@ -1901,10 +1897,6 @@ WasmModuleObject* WasmInterpreterEntryFrame::module_object() const {
return wasm_instance()->module_object();
}
WasmCompiledModule* WasmInterpreterEntryFrame::compiled_module() const {
return wasm_instance()->compiled_module();
}
Script* WasmInterpreterEntryFrame::script() const {
return module_object()->script();
}
......
......@@ -26,7 +26,6 @@ class RootVisitor;
class StackFrameIteratorBase;
class StringStream;
class ThreadLocalTop;
class WasmCompiledModule;
class WasmDebugInfo;
class WasmInstanceObject;
class WasmModuleObject;
......@@ -998,7 +997,6 @@ class WasmCompiledFrame final : public StandardFrame {
private:
friend class StackFrameIteratorBase;
WasmCompiledModule* compiled_module() const;
WasmModuleObject* module_object() const;
};
......@@ -1038,7 +1036,6 @@ class WasmInterpreterEntryFrame final : public StandardFrame {
private:
friend class StackFrameIteratorBase;
WasmCompiledModule* compiled_module() const;
WasmModuleObject* module_object() const;
};
......
......@@ -74,7 +74,6 @@ class PerfJitLogger;
class Profiler;
class RuntimeCallTimer;
class Ticker;
class WasmCompiledModule;
namespace interpreter {
enum class Bytecode : uint8_t;
......@@ -269,7 +268,6 @@ class Logger : public CodeEventListener {
void LogExistingFunction(Handle<SharedFunctionInfo> shared,
Handle<AbstractCode> code);
void LogCompiledModule(Handle<WasmCompiledModule> module);
// Logs all compiled functions found in the heap.
void LogCompiledFunctions();
// Logs all accessor callbacks found in the heap.
......
......@@ -9,7 +9,6 @@
#include "src/isolate.h"
#include "src/objects.h"
#include "src/snapshot/code-serializer.h"
#include "src/wasm/wasm-objects.h"
namespace v8 {
namespace internal {
......@@ -33,38 +32,6 @@ ObjectDeserializer::DeserializeSharedFunctionInfo(
: MaybeHandle<SharedFunctionInfo>();
}
MaybeHandle<WasmCompiledModule>
ObjectDeserializer::DeserializeWasmCompiledModule(
Isolate* isolate, const SerializedCodeData* data,
Vector<const byte> wire_bytes) {
ObjectDeserializer d(data);
d.AddAttachedObject(isolate->native_context());
MaybeHandle<String> maybe_wire_bytes_as_string =
isolate->factory()->NewStringFromOneByte(wire_bytes, TENURED);
Handle<String> wire_bytes_as_string;
if (!maybe_wire_bytes_as_string.ToHandle(&wire_bytes_as_string)) {
return MaybeHandle<WasmCompiledModule>();
}
d.AddAttachedObject(wire_bytes_as_string);
Vector<const uint32_t> code_stub_keys = data->CodeStubKeys();
for (int i = 0; i < code_stub_keys.length(); i++) {
d.AddAttachedObject(
CodeStub::GetCode(isolate, code_stub_keys[i]).ToHandleChecked());
}
Handle<HeapObject> result;
if (!d.Deserialize(isolate).ToHandle(&result))
return MaybeHandle<WasmCompiledModule>();
if (!result->IsWasmCompiledModule()) return MaybeHandle<WasmCompiledModule>();
// Cast without type checks, as the module wrapper is not there yet.
return handle(static_cast<WasmCompiledModule*>(*result), isolate);
}
MaybeHandle<HeapObject> ObjectDeserializer::Deserialize(Isolate* isolate) {
Initialize(isolate);
......
......@@ -12,7 +12,6 @@ namespace internal {
class SerializedCodeData;
class SharedFunctionInfo;
class WasmCompiledModule;
// Deserializes the object graph rooted at a given object.
class ObjectDeserializer final : public Deserializer<> {
......@@ -20,10 +19,6 @@ class ObjectDeserializer final : public Deserializer<> {
static MaybeHandle<SharedFunctionInfo> DeserializeSharedFunctionInfo(
Isolate* isolate, const SerializedCodeData* data, Handle<String> source);
static MaybeHandle<WasmCompiledModule> DeserializeWasmCompiledModule(
Isolate* isolate, const SerializedCodeData* data,
Vector<const byte> wire_bytes);
private:
explicit ObjectDeserializer(const SerializedCodeData* data)
: Deserializer(data, true) {}
......
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