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

Side by Side Diff: compiled/shell.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Rebased, addressed comments, changed StringMap::find() return value Created Feb. 18, 2016, 4:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI PTEN_VERSION}}}";
2
3 var FilterNotifier = require("filterNotifier").FilterNotifier;
4
5 var regexps =
6 {
7 _data: Object.create(null),
8 _counter: 0,
9
10 create: function(source, matchCase)
11 {
12 var id = ++this._counter;
13 try
14 {
15 this._data[id] = new RegExp(getStringData(source), matchCase ? "" : "i");
16 return id;
17 }
18 catch (e)
19 {
20 return -1;
21 }
22 },
23
24 delete: function(id)
25 {
26 delete this._data[id];
27 },
28
29 test: function(id, str)
30 {
31 return this._data[id].test(getStringData(str));
32 }
33 };
34
35 var Module =
36 {
37 preRun: [],
38 postRun: [],
39 print: console.log.bind(console),
40 printErr: console.error.bind(console),
41
42 getMemoryLayout: function()
43 {
44 return {
45 'static_base': STATIC_BASE,
46 'static_top': STATICTOP,
47 'stack_base': STACK_BASE,
48 'stack_top': STACKTOP,
49 'stack_max': STACK_MAX,
50 'dynamic_base': DYNAMIC_BASE,
51 'dynamic_top': DYNAMICTOP,
52 'total_memory': TOTAL_MEMORY
53 };
54 }
55 };
56 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false,
57 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true;
58
59 {{BODY}}
60
61 Object.assign(exports, Module);
OLDNEW

Powered by Google App Engine
This is Rietveld