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

Issue 74753002: Introduce gin_shell (Closed)

Created:
7 years, 1 month ago by abarth-chromium
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Introduce gin_shell This CL adds a simple shell program for Gin to make edit/test/debug cycle faster. The shell excutes a list of scripts from the command line and loads any requested AMD modules relative to the current working directory. This CL will also let us remove the ugly code in https://codereview.chromium.org/69843003/diff/240001/mojo/public/bindings/js/test/run_js_tests.cc because we now know how to file modules via the file system. Eventually for Mojo, we'll want to use a net_module_provider (instead of the file_module_provider included in this CL) to load additional AMD modules off the network. BUG=317398 R=jochen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235750

Patch Set 1 #

Total comments: 1

Patch Set 2 : Style nits #

Total comments: 32

Patch Set 3 : Address jochen's comments #

Patch Set 4 : Fix more header nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -163 lines) Patch
M gin/DEPS View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M gin/arguments.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M gin/array_buffer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gin/array_buffer.cc View 1 2 4 chunks +7 lines, -19 lines 0 comments Download
M gin/context_holder.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M gin/context_holder.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M gin/gin.gyp View 1 2 2 chunks +25 lines, -7 lines 0 comments Download
M gin/initialize.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A gin/modules/file_module_provider.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A gin/modules/file_module_provider.cc View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
M gin/modules/module_registry.h View 1 2 3 chunks +31 lines, -9 lines 0 comments Download
M gin/modules/module_registry.cc View 1 2 3 4 chunks +116 lines, -74 lines 0 comments Download
A gin/modules/module_runner_delegate.h View 1 chunk +33 lines, -0 lines 0 comments Download
A gin/modules/module_runner_delegate.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M gin/per_context_data.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M gin/per_context_data.cc View 1 2 4 chunks +5 lines, -6 lines 0 comments Download
M gin/runner.h View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M gin/runner.cc View 3 chunks +23 lines, -6 lines 0 comments Download
M gin/runner_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
A gin/shell/gin_main.cc View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M gin/test/file_runner.h View 1 chunk +6 lines, -4 lines 0 comments Download
M gin/test/file_runner.cc View 2 chunks +22 lines, -15 lines 0 comments Download
A gin/try_catch.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A gin/try_catch.cc View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
abarth-chromium
Please take a look. Thanks!
7 years, 1 month ago (2013-11-17 18:20:24 UTC) #1
jochen (gone - plz use gerrit)
nice! https://codereview.chromium.org/74753002/diff/1/gin/gin.gyp File gin/gin.gyp (right): https://codereview.chromium.org/74753002/diff/1/gin/gin.gyp#newcode60 gin/gin.gyp:60: ], you could add 'msvs_settings': { 'VCLinkerTool': { ...
7 years, 1 month ago (2013-11-18 12:46:05 UTC) #2
abarth-chromium
https://codereview.chromium.org/74753002/diff/40001/gin/modules/file_module_provider.cc File gin/modules/file_module_provider.cc (right): https://codereview.chromium.org/74753002/diff/40001/gin/modules/file_module_provider.cc#newcode17 gin/modules/file_module_provider.cc:17: void AttempToLoadModule(base::WeakPtr<Runner> runner, On 2013/11/18 12:46:05, jochen wrote: > ...
7 years, 1 month ago (2013-11-18 15:33:05 UTC) #3
abarth-chromium
https://codereview.chromium.org/74753002/diff/40001/gin/shell/gin_main.cc File gin/shell/gin_main.cc (right): https://codereview.chromium.org/74753002/diff/40001/gin/shell/gin_main.cc#newcode55 gin/shell/gin_main.cc:55: gin::Initialize(); On 2013/11/18 15:33:06, abarth wrote: > On 2013/11/18 ...
7 years, 1 month ago (2013-11-18 15:34:37 UTC) #4
abarth-chromium
https://codereview.chromium.org/74753002/diff/40001/gin/runner.cc File gin/runner.cc (right): https://codereview.chromium.org/74753002/diff/40001/gin/runner.cc#newcode63 gin/runner.cc:63: script->Run(); On 2013/11/18 15:33:06, abarth wrote: > On 2013/11/18 ...
7 years, 1 month ago (2013-11-18 15:36:39 UTC) #5
abarth-chromium
Patch updated, PTAL. I've also rolled https://codereview.chromium.org/60613003/ into this CL so that I can actually ...
7 years, 1 month ago (2013-11-18 15:40:00 UTC) #6
jochen (gone - plz use gerrit)
lgtm, thx
7 years, 1 month ago (2013-11-18 15:54:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/74753002/190001
7 years, 1 month ago (2013-11-18 16:00:21 UTC) #8
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=36781
7 years, 1 month ago (2013-11-18 16:20:37 UTC) #9
abarth-chromium
7 years, 1 month ago (2013-11-18 17:09:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r235750.

Powered by Google App Engine
This is Rietveld 408576698