Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Issue 76353002: Introduce a Gin class instead of using global functions to control gin (Closed)

Created:
7 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Introduce a Gin class instead of using global functions to control gin The Gin class holds and controls a v8::Isolate. The isolate is not entered by default, i.e. before you can use gin for a given Gin instance, you need to enter the isolate first, e.g. by using a v8::Isolate::Scope. This has the advantage that we don't rely on the deprecate default isolate, and also support having multiple isolates in one process. BUG=317398 R=abarth@chromium.org TEST=gin_unittests and mojo_js_bindings_unittests pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236029

Patch Set 1 #

Total comments: 9

Patch Set 2 : updates #

Total comments: 1

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -92 lines) Patch
M gin/converter_unittest.cc View 5 chunks +8 lines, -7 lines 0 comments Download
A gin/gin.h View 1 chunk +31 lines, -0 lines 0 comments Download
A gin/gin.cc View 1 chunk +55 lines, -0 lines 0 comments Download
M gin/gin.gyp View 2 chunks +3 lines, -2 lines 0 comments Download
D gin/initialize.h View 1 chunk +0 lines, -14 lines 0 comments Download
D gin/initialize.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M gin/runner.h View 1 chunk +1 line, -0 lines 0 comments Download
M gin/runner.cc View 2 chunks +3 lines, -1 line 0 comments Download
M gin/runner_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M gin/shell/gin_main.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M gin/test/file_runner.cc View 1 2 2 chunks +13 lines, -9 lines 0 comments Download
M gin/test/run_all_unittests.cc View 1 chunk +1 line, -3 lines 0 comments Download
M gin/test/v8_test.h View 2 chunks +8 lines, -1 line 0 comments Download
M gin/test/v8_test.cc View 2 chunks +14 lines, -8 lines 0 comments Download
M mojo/apps/js/main.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/bindings/js/test/run_all_unittests.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jochen (gone - plz use gerrit)
7 years, 1 month ago (2013-11-19 15:43:01 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/76353002/diff/1/gin/gin.cc File gin/gin.cc (right): https://codereview.chromium.org/76353002/diff/1/gin/gin.cc#newcode20 gin/gin.cc:20: base::RandBytes(buffer, amount); Thanks! https://codereview.chromium.org/76353002/diff/1/gin/runner_unittest.cc File gin/runner_unittest.cc (right): https://codereview.chromium.org/76353002/diff/1/gin/runner_unittest.cc#newcode23 ...
7 years, 1 month ago (2013-11-19 15:49:21 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/76353002/diff/1/gin/runner_unittest.cc File gin/runner_unittest.cc (right): https://codereview.chromium.org/76353002/diff/1/gin/runner_unittest.cc#newcode23 gin/runner_unittest.cc:23: scoped_ptr<gin::Gin> instance(new gin::Gin); On 2013/11/19 15:49:21, abarth wrote: > ...
7 years, 1 month ago (2013-11-19 15:57:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/76353002/10017
7 years, 1 month ago (2013-11-19 15:57:51 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=36973
7 years, 1 month ago (2013-11-19 16:13:30 UTC) #5
jochen (gone - plz use gerrit)
Aaron, can you rubberstamp plz?
7 years, 1 month ago (2013-11-19 16:14:47 UTC) #6
abarth-chromium
https://codereview.chromium.org/76353002/diff/10017/gin/test/file_runner.cc File gin/test/file_runner.cc (right): https://codereview.chromium.org/76353002/diff/10017/gin/test/file_runner.cc#newcode50 gin/test/file_runner.cc:50: scoped_ptr<gin::Gin> instance(new gin::Gin); Why not on the stack?
7 years, 1 month ago (2013-11-19 16:48:57 UTC) #7
abarth-chromium
On 2013/11/19 16:14:47, jochen wrote: > Aaron, can you rubberstamp plz? I've just been added ...
7 years, 1 month ago (2013-11-19 16:56:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/76353002/10017
7 years, 1 month ago (2013-11-19 16:57:32 UTC) #9
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 1 month ago (2013-11-19 17:03:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/76353002/240002
7 years, 1 month ago (2013-11-19 17:04:22 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-11-19 19:25:16 UTC) #12
Message was sent while issue was closed.
Change committed as 236029

Powered by Google App Engine
This is Rietveld 408576698