Opened 2 years ago

Closed 2 years ago

#5201 closed change (fixed)

[emscripten] Replace EM_ASM calls by a custom JavaScript library

Reported by: trev Assignee: trev
Priority: P4 Milestone:
Module: Core Keywords:
Cc: Blocked By:
Blocking: #4122 Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29425555/

Description (last modified by trev)

Background

EM_ASM calls in our code have several disadvantages:

  • No type safety.
  • Hard to replace in libadblockplus by a C++ implementation (if no JS engine present).
  • These will make switching to WebAssembly more complicated.

What to change

Replace EM_ASM calls by a custom JavaScript library which will expose a C API. Positive side-effect of this approach: around 1% saved in code size.

Change History (4)

comment:1 Changed 2 years ago by trev

  • Description modified (diff)

comment:2 Changed 2 years ago by trev

  • Description modified (diff)
  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:3 Changed 2 years ago by abpbot

A commit referencing this issue has landed:
Issue 5201 - [emscripten Replace EM_ASM calls by a custom JavaScript library]

comment:4 Changed 2 years ago by trev

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.