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: Addressed comments from Patch Set 26 Created March 13, 2017, 5:36 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
« no previous file with comments | « compiled/intrusive_ptr.h ('k') | compiled/traceInit.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 "use strict";
2
3 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI PTEN_VERSION}}}";
4
5 var FilterNotifier = require("filterNotifier").FilterNotifier;
6
7 var regexps =
8 {
9 _data: Object.create(null),
10 _counter: 0,
11
12 create: function(source, matchCase)
13 {
14 var id = ++this._counter;
15 try
16 {
17 this._data[id] = new RegExp(readString(source), matchCase ? "" : "i");
18 return id;
19 }
20 catch (e)
21 {
22 return -1;
23 }
24 },
25
26 delete: function(id)
27 {
28 delete this._data[id];
29 },
30
31 test: function(id, str)
32 {
33 return this._data[id].test(readString(str));
34 }
35 };
36
37 var Module =
38 {
39 preRun: [],
40 postRun: [],
41 print: console.log.bind(console),
42 printErr: console.error.bind(console),
43
44 getMemoryLayout: function()
45 {
46 return {
47 'static_base': STATIC_BASE,
48 'static_top': STATICTOP,
49 'stack_base': STACK_BASE,
50 'stack_top': STACKTOP,
51 'stack_max': STACK_MAX,
52 'dynamic_base': DYNAMIC_BASE,
53 'dynamic_top': DYNAMICTOP,
54 'total_memory': TOTAL_MEMORY
55 };
56 }
57 };
58 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false,
59 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true;
60
61 {{BODY}}
62
63 Object.assign(exports, Module);
OLDNEW
« no previous file with comments | « compiled/intrusive_ptr.h ('k') | compiled/traceInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld