mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
Revert "LibWasm: Some more performance stuff (#8812)"
This reverts commit 35394dbfaa
.
I pushed the wrong button again, hopefully this will be the last of
such incidents.
This commit is contained in:
parent
35394dbfaa
commit
23b48f8fe1
8 changed files with 27 additions and 49 deletions
|
@ -130,26 +130,26 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
ALWAYS_INLINE Value(Value const& value)
|
||||
Value(Value const& value)
|
||||
: m_value(AnyValueType { value.m_value })
|
||||
, m_type(value.m_type)
|
||||
{
|
||||
}
|
||||
|
||||
ALWAYS_INLINE Value(Value&& value)
|
||||
Value(Value&& value)
|
||||
: m_value(move(value.m_value))
|
||||
, m_type(move(value.m_type))
|
||||
{
|
||||
}
|
||||
|
||||
ALWAYS_INLINE Value& operator=(Value&& value)
|
||||
Value& operator=(Value&& value)
|
||||
{
|
||||
m_value = move(value.m_value);
|
||||
m_type = move(value.m_type);
|
||||
return *this;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE Value& operator=(Value const& value)
|
||||
Value& operator=(Value const& value)
|
||||
{
|
||||
m_value = value.m_value;
|
||||
m_type = value.m_type;
|
||||
|
@ -157,7 +157,7 @@ public:
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
ALWAYS_INLINE Optional<T> to()
|
||||
Optional<T> to()
|
||||
{
|
||||
Optional<T> result;
|
||||
m_value.visit(
|
||||
|
@ -505,13 +505,10 @@ public:
|
|||
auto& store() const { return m_store; }
|
||||
auto& store() { return m_store; }
|
||||
|
||||
void enable_instruction_count_limit() { m_should_limit_instruction_count = true; }
|
||||
|
||||
private:
|
||||
Optional<InstantiationError> allocate_all_initial_phase(Module const&, ModuleInstance&, Vector<ExternValue>&, Vector<Value>& global_values);
|
||||
Optional<InstantiationError> allocate_all_final_phase(Module const&, ModuleInstance&, Vector<Vector<Reference>>& elements);
|
||||
Store m_store;
|
||||
bool m_should_limit_instruction_count { false };
|
||||
};
|
||||
|
||||
class Linker {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue