Skip to content

Remove redundant allocator in Builder#3144

Merged
tlively merged 1 commit into
WebAssembly:masterfrom
tlively:builder-remove-redundant-allocator
Sep 22, 2020
Merged

Remove redundant allocator in Builder#3144
tlively merged 1 commit into
WebAssembly:masterfrom
tlively:builder-remove-redundant-allocator

Conversation

@tlively

@tlively tlively commented Sep 19, 2020

Copy link
Copy Markdown
Member

Builders gained a Module field in #3130 because they now require extra context
to properly finalize some Expressions. Since modules contain allocators, the old
allocator field on the builder became redundant after that change. This PR
removes the redundant allocator field.

Builders gained a `Module` field in WebAssembly#3130 because they now require extra context
to properly finalize some Expressions. Since modules contain allocators, the old
allocator field on the builder became redundant after that change. This PR
removes the redundant allocator field.

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great!

@aardappel aardappel left a comment

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.

Cool.. I was tempted to make it this way, but didn't know if it would have any side effects.

Comment thread src/wasm2js.h
asmFunc[3]->push_back(processFunction(wasm, func));
});
if (generateFetchHighBits) {
Builder builder(allocator, *wasm);

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.

is this separate allocator still used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nope, removed it everywhere now.

@tlively tlively merged commit e5bf768 into WebAssembly:master Sep 22, 2020
@tlively tlively deleted the builder-remove-redundant-allocator branch September 22, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants