mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibJS+LibJIT: Fix GCC build
This commit is contained in:
parent
8eba60d015
commit
8c745ca223
Notes:
sideshowbarker
2024-07-17 01:46:00 +09:00
Author: https://github.com/awesomekling
Commit: 8c745ca223
Pull-request: https://github.com/SerenityOS/serenity/pull/21619
Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 5 additions and 2 deletions
|
@ -228,7 +228,10 @@ struct Assembler {
|
|||
|
||||
[[nodiscard]] Label make_label()
|
||||
{
|
||||
return { .offset_of_label_in_instruction_stream = m_output.size() };
|
||||
return Label {
|
||||
.offset_of_label_in_instruction_stream = m_output.size(),
|
||||
.jump_slot_offsets_in_instruction_stream = {},
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] Label jump()
|
||||
|
|
|
@ -581,7 +581,7 @@ void Compiler::compile_new_array(Bytecode::Op::NewArray const& op)
|
|||
store_vm_register(Bytecode::Register::accumulator(), RET);
|
||||
}
|
||||
|
||||
Value cxx_new_function(
|
||||
static Value cxx_new_function(
|
||||
VM& vm,
|
||||
FunctionExpression const& function_node,
|
||||
Optional<Bytecode::IdentifierTableIndex> const& lhs_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue