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

Issue 10213003: Make JsEngine::Evaluate() return a wrapper for v8::Value to accessdifferent variable types easily (Closed)

Created:
April 12, 2013, 2:55 p.m. by Wladimir Palant
Modified:
April 17, 2013, 8:19 a.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

Make JsEngine::Evaluate() return a wrapper for v8::Value to access different variable types easily

Patch Set 1 #

Total comments: 1

Patch Set 2 : Extended JsValue API to support all FilterEngine functions #

Patch Set 3 : Added tests, resolved type conversion ambiguities, implemented some missing API calls #

Total comments: 5

Patch Set 4 : Unbitrotted patch #

Patch Set 5 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1008 lines, -151 lines) Patch
M convert_js.py View 1 2 3 4 1 chunk +20 lines, -13 lines 0 comments Download
M include/AdblockPlus.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/AdblockPlus/FilterEngine.h View 1 2 3 4 1 chunk +35 lines, -16 lines 0 comments Download
M include/AdblockPlus/JsEngine.h View 1 2 3 4 1 chunk +28 lines, -1 line 0 comments Download
A include/AdblockPlus/JsValue.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A lib/api.js View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
M lib/compat.js View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M libadblockplus.gyp View 1 2 3 3 chunks +15 lines, -9 lines 0 comments Download
M src/FilterEngine.cpp View 1 2 3 chunks +168 lines, -21 lines 0 comments Download
M src/JsEngine.cpp View 1 2 3 2 chunks +31 lines, -9 lines 0 comments Download
A src/JsValue.cpp View 1 1 chunk +185 lines, -0 lines 0 comments Download
M test/FileSystemJsObject.cpp View 1 2 3 2 chunks +14 lines, -14 lines 0 comments Download
M test/FilterEngineStubs.cpp View 1 2 1 chunk +54 lines, -42 lines 0 comments Download
M test/GlobalJsObject.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M test/JsEngine.cpp View 1 2 3 2 chunks +25 lines, -4 lines 0 comments Download
A test/JsValue.cpp View 1 2 1 chunk +215 lines, -0 lines 0 comments Download
M test/WebRequest.cpp View 1 2 3 2 chunks +16 lines, -16 lines 0 comments Download

Messages

Total messages: 6
Wladimir Palant
April 12, 2013, 2:55 p.m. (2013-04-12 14:55:27 UTC) #1
Wladimir Palant
In order to make FilterEngine work with our JS code I had to extend JsValue ...
April 13, 2013, 8:44 p.m. (2013-04-13 20:44:21 UTC) #2
Wladimir Palant
April 15, 2013, 6:23 a.m. (2013-04-15 06:23:18 UTC) #3
Felix Dahlke
http://codereview.adblockplus.org/10213003/diff/6001/convert_js.py File convert_js.py (right): http://codereview.adblockplus.org/10213003/diff/6001/convert_js.py#newcode32 convert_js.py:32: for file in verbatimAfter: Given how this is the ...
April 16, 2013, 3:14 p.m. (2013-04-16 15:14:33 UTC) #4
Wladimir Palant
I addressed the new review comments and pushed already to prevent further merging issues.
April 17, 2013, 7:59 a.m. (2013-04-17 07:59:39 UTC) #5
Felix Dahlke
April 17, 2013, 8:03 a.m. (2013-04-17 08:03:00 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld