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

Issue 274080: Add "Version" command (Closed)

Created:
11 years, 2 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add "Version" command Committed: http://code.google.com/p/v8/source/detail?r=3108

Patch Set 1 #

Patch Set 2 : clean-up #

Patch Set 3 : change version number back #

Patch Set 4 : revert changes #

Total comments: 10

Patch Set 5 : all done #

Patch Set 6 : clean-up #

Total comments: 4

Patch Set 7 : add test #

Patch Set 8 : clean-up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -1 line) Patch
M src/debug-delay.js View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M src/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
A test/mjsunit/debug-version.js View 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Peter Rybin
Hi Soren I changed our protocol a bit by making "running" property more accurate. However, ...
11 years, 2 months ago (2009-10-16 20:21:46 UTC) #1
Søren Thygesen Gjesse
LGTM with comments below addressed. http://codereview.chromium.org/274080/diff/1011/8 File include/v8-debug.h (right): http://codereview.chromium.org/274080/diff/1011/8#newcode255 Line 255: #define DEBUGGER_PROTOCOL_VERSION "1" ...
11 years, 2 months ago (2009-10-19 12:11:05 UTC) #2
Peter Rybin
Hi Soren Now I dropped protocol version and feature list and added V8Version. So now ...
11 years, 2 months ago (2009-10-20 21:26:51 UTC) #3
Søren Thygesen Gjesse
LGTM when comments have been addressed. http://codereview.chromium.org/274080/diff/5014/1017 File src/runtime.cc (right): http://codereview.chromium.org/274080/diff/5014/1017#newcode7664 Line 7664: // code ...
11 years, 2 months ago (2009-10-21 07:38:50 UTC) #4
Peter Rybin
11 years, 2 months ago (2009-10-21 16:58:52 UTC) #5
Hi Soren

Thank you for your review. I also added a test before commit.

Peter

http://codereview.chromium.org/274080/diff/5014/1017
File src/runtime.cc (right):

http://codereview.chromium.org/274080/diff/5014/1017#newcode7664
Line 7664: // code offset.
On 2009/10/21 07:38:50, Søren Gjesse wrote:
> This comment does not seem right.

Stupid me.

Done

http://codereview.chromium.org/274080/diff/5014/1017#newcode7669
Line 7669: return *(Factory::LookupAsciiSymbol(v8::V8::GetVersion()));
On 2009/10/21 07:38:50, Søren Gjesse wrote:
> No need to make the version a symbol. Just use NewStringFromAscii. Actually
you
> can drop the HandleScope and just use Heap::AllocateStringFromAscii. Please
add
> 
>   NoHandleAllocation ha;
> 
> to the beginning of the function as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698