Skip to content

Commit

Permalink
release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rerobika committed May 20, 2021
1 parent a7a32f9 commit 412cc55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set(SRC
add_library(optimizer-core STATIC ${SRC})
add_dependencies(optimizer-core jerry-core)

message(${CMAKE_BINARY_DIR})
target_include_directories (optimizer-core
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
PUBLIC ${CMAKE_BINARY_DIR}/deps/jerryscript/amalgam/
Expand All @@ -40,6 +39,13 @@ target_include_directories (optimizer-core
PUBLIC ${JERRYSCRIPT_DIR}/jerry-core/parser/js
PUBLIC ${JERRYSCRIPT_DIR}/jerry-port/default/include
)

if (CMAKE_BUILD_TYPE STREQUAL "Release")
target_compile_definitions(optimizer-core
PUBLIC JERRY_NDEBUG
)
endif()

target_link_libraries (optimizer-core
PRIVATE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libjerry-core${CMAKE_STATIC_LIBRARY_SUFFIX}
PRIVATE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libjerry-port-default${CMAKE_STATIC_LIBRARY_SUFFIX})
3 changes: 2 additions & 1 deletion src/inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Argument {
public:
Argument() : Argument(OperandType::OPERAND_TYPE__COUNT) {}
Argument(OperandType type)
: type_(type), branch_offset_(0), byte_arg_(UINT32_MAX) {}
: type_(type), branch_offset_(0), line_info_(0), byte_arg_(UINT32_MAX),
stack_delta_(0) {}

auto branchOffset() const { return branch_offset_; }
auto type() const { return type_; }
Expand Down
1 change: 0 additions & 1 deletion src/snapshot-readwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ uint32_t SnapshotReadWriter::writeSnapshot(Bytecode *bytecode,
if (!ecma_save_literals_for_snapshot(lit_pool_p, buffer_p, buffer_size,
&globals.snapshot_buffer_write_offset,
&lit_map_p, &literals_num)) {
JERRY_ASSERT(lit_map_p == NULL);
return 0;
}

Expand Down

0 comments on commit 412cc55

Please sign in to comment.