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

Delta Between Two Patch Sets: compiled/shell.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Left Patch Set: Rebased, addressed comments, changed StringMap::find() return value Created Feb. 18, 2016, 4:02 p.m.
Right Patch Set: Addressed comments from Patch Set 28 Created March 21, 2017, 10:04 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « compiled/intrusive_ptr.h ('k') | compiled/traceInit.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 "use strict";
2
1 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI PTEN_VERSION}}}"; 3 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI PTEN_VERSION}}}";
2 4
3 var FilterNotifier = require("filterNotifier").FilterNotifier; 5 var FilterNotifier = require("filterNotifier").FilterNotifier;
4 6
5 var regexps = 7 var regexps =
6 { 8 {
7 _data: Object.create(null), 9 _data: Object.create(null),
8 _counter: 0, 10 _counter: 0,
9 11
10 create: function(source, matchCase) 12 create: function(source, matchCase)
11 { 13 {
12 var id = ++this._counter; 14 var id = ++this._counter;
13 try 15 try
14 { 16 {
15 this._data[id] = new RegExp(getStringData(source), matchCase ? "" : "i"); 17 this._data[id] = new RegExp(readString(source), matchCase ? "" : "i");
16 return id; 18 return id;
17 } 19 }
18 catch (e) 20 catch (e)
19 { 21 {
20 return -1; 22 return -1;
21 } 23 }
22 }, 24 },
23 25
24 delete: function(id) 26 delete: function(id)
25 { 27 {
26 delete this._data[id]; 28 delete this._data[id];
27 }, 29 },
28 30
29 test: function(id, str) 31 test: function(id, str)
30 { 32 {
31 return this._data[id].test(getStringData(str)); 33 return this._data[id].test(readString(str));
32 } 34 }
33 }; 35 };
34 36
35 var Module = 37 var Module =
36 { 38 {
37 preRun: [], 39 preRun: [],
38 postRun: [], 40 postRun: [],
39 print: console.log.bind(console), 41 print: console.log.bind(console),
40 printErr: console.error.bind(console), 42 printErr: console.error.bind(console),
41 43
(...skipping 10 matching lines...) Expand all
52 'total_memory': TOTAL_MEMORY 54 'total_memory': TOTAL_MEMORY
53 }; 55 };
54 } 56 }
55 }; 57 };
56 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false, 58 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false,
57 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true; 59 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true;
58 60
59 {{BODY}} 61 {{BODY}}
60 62
61 Object.assign(exports, Module); 63 Object.assign(exports, Module);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld