Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29425555: Issue 5201 - [emscripten] Replace EM_ASM calls by a custom JavaScript library (Closed)

Created:
April 30, 2017, 6:54 a.m. by Wladimir Palant
Modified:
May 4, 2017, 9:35 a.m.
Reviewers:
sergei
CC:
hub, Felix Dahlke
Base URL:
https://hg.adblockplus.org/adblockpluscore
Visibility:
Public.

Description

Issue 5201 - [emscripten] Replace EM_ASM calls by a custom JavaScript library

Patch Set 1 #

Patch Set 2 : Moved all declarations into a single header and corrected emscripten.h includes #

Total comments: 6

Patch Set 3 : Abstracted away all Emscripten dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -145 lines) Patch
M compile View 3 chunks +3 lines, -2 lines 0 comments Download
M compiled/FilterNotifier.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
R compiled/FilterNotifier.cpp View 1 chunk +0 lines, -36 lines 0 comments Download
M compiled/String.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M compiled/bindings/generator.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M compiled/bindings/generator.cpp View 1 1 chunk +4 lines, -2 lines 0 comments Download
A compiled/bindings/runtime.h View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M compiled/bindings/runtime_utils.cpp View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M compiled/debug.h View 1 2 1 chunk +43 lines, -13 lines 0 comments Download
M compiled/filter/ActiveFilter.h View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M compiled/filter/ElemHideBase.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M compiled/filter/Filter.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M compiled/filter/InvalidFilter.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M compiled/filter/RegExpFilter.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M compiled/filter/RegExpFilter.cpp View 1 4 chunks +3 lines, -9 lines 0 comments Download
A compiled/library.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A compiled/library.js View 1 chunk +87 lines, -0 lines 0 comments Download
M compiled/shell.js View 1 chunk +0 lines, -30 lines 0 comments Download
M compiled/subscription/DownloadableSubscription.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M compiled/subscription/Subscription.h View 1 2 2 chunks +10 lines, -9 lines 0 comments Download
M compiled/subscription/UserDefinedSubscription.h View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M compiled/traceInit.cpp View 1 2 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 8
Wladimir Palant
April 30, 2017, 6:54 a.m. (2017-04-30 06:54:42 UTC) #1
Wladimir Palant
With Patch Set 2, the idea was to stop including emscripten.h everywhere. However, turns out ...
April 30, 2017, 3:16 p.m. (2017-04-30 15:16:06 UTC) #2
sergei
On 2017/04/30 15:16:06, Wladimir Palant wrote: > With Patch Set 2, the idea was to ...
May 2, 2017, 9:48 a.m. (2017-05-02 09:48:06 UTC) #3
sergei
emscription -> emscripten*
May 2, 2017, 9:48 a.m. (2017-05-02 09:48:46 UTC) #4
Wladimir Palant
Ok, with Patch Set 3 I now made sure to abstract away all Emscripten dependencies. ...
May 3, 2017, 11:57 a.m. (2017-05-03 11:57:17 UTC) #5
sergei
LGTM https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js File compiled/library.js (right): https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js#newcode43 compiled/library.js:43: return String.fromCharCode(charCode).toLowerCase().charCodeAt(0); On 2017/05/03 11:57:17, Wladimir Palant wrote: ...
May 3, 2017, 1:24 p.m. (2017-05-03 13:24:05 UTC) #6
Wladimir Palant
https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js File compiled/library.js (right): https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js#newcode43 compiled/library.js:43: return String.fromCharCode(charCode).toLowerCase().charCodeAt(0); On 2017/05/03 13:24:04, sergei wrote: > I ...
May 4, 2017, 9:14 a.m. (2017-05-04 09:14:28 UTC) #7
Wladimir Palant
May 4, 2017, 9:35 a.m. (2017-05-04 09:35:19 UTC) #8
Message was sent while issue was closed.
https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js
File compiled/library.js (right):

https://codereview.adblockplus.org/29425555/diff/29425584/compiled/library.js...
compiled/library.js:43: return
String.fromCharCode(charCode).toLowerCase().charCodeAt(0);
Going through the locale-insensitive mappings in
ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt, it seems that
Greek sigma is the only letter that is "special" with regards to lowercasing.
All the other special cases listed only relate to uppercasing. So if we really
run into issues here, we could simply add an additional code path for this one
letter.

Powered by Google App Engine
This is Rietveld