Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Fix for eos#2818#2897

Merged
bytemaster merged 4 commits intoEOSIO:slimfrom
larryk85:fix/eos2818
May 10, 2018
Merged

Fix for eos#2818#2897
bytemaster merged 4 commits intoEOSIO:slimfrom
larryk85:fix/eos2818

Conversation

@larryk85
Copy link
Copy Markdown
Contributor

Added alignment checks and slow path for array types. Removed one specialization that is no longer being used and added overlap checks for memcpy.

* @tparam Translated - the list of transcribed wasm parameters
*/
template<typename Ret, typename... Inputs, typename ...Translated>
struct intrinsic_invoker_impl<Ret, std::tuple<const fc::time_point_sec&, Inputs...>, std::tuple<Translated...>> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the time_point_sec specialization is not needed anymore and is being removed, it should also be removed from binaryen.hpp (see line 552). Also the native_to_wasm and wasm_to_rvalue_types related to fc::time_point_sec or its const reference should be removed from wavm.hpp, and the equivalent in binaryen.hpp (convert_native_to_literal for the const fc::time_point_sec&) should be removed as well.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time_point_sec is still used for ABI in cases where second resolution is good enough.

Likely unneeded for intrinsics though.

@bytemaster bytemaster merged commit bf0db37 into EOSIO:slim May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants