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

Issue 8508008: Add getters for column number and script id to v8::Function (Closed)

Created:
9 years, 1 month ago by yurys
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Add getters for column number and script id to v8::Function Committed: http://code.google.com/p/v8/source/detail?r=9935

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -0 lines) Patch
M include/v8.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/api.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M src/handles.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/handles.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
yurys
9 years, 1 month ago (2011-11-09 13:43:17 UTC) #1
Søren Gjesse
LGTM with comments http://codereview.chromium.org/8508008/diff/1/src/handles.cc File src/handles.cc (right): http://codereview.chromium.org/8508008/diff/1/src/handles.cc#newcode673 src/handles.cc:673: if (!line_number) return code_pos + script->column_offset()->value(); ...
9 years, 1 month ago (2011-11-09 14:00:10 UTC) #2
yurys
http://codereview.chromium.org/8508008/diff/1/src/handles.cc File src/handles.cc (right): http://codereview.chromium.org/8508008/diff/1/src/handles.cc#newcode673 src/handles.cc:673: if (!line_number) return code_pos + script->column_offset()->value(); On 2011/11/09 14:00:10, ...
9 years, 1 month ago (2011-11-09 14:10:10 UTC) #3
Søren Gjesse
9 years, 1 month ago (2011-11-09 15:41:53 UTC) #4
On 2011/11/09 14:10:10, Yury Semikhatsky wrote:
> http://codereview.chromium.org/8508008/diff/1/src/handles.cc
> File src/handles.cc (right):
> 
> http://codereview.chromium.org/8508008/diff/1/src/handles.cc#newcode673
> src/handles.cc:673: if (!line_number) return code_pos +
> script->column_offset()->value();
> On 2011/11/09 14:00:10, Søren Gjesse wrote:
> > Please use (line_number == 0)
> 
> Done.
> 
> http://codereview.chromium.org/8508008/diff/1/test/cctest/test-api.cc
> File test/cctest/test-api.cc (right):
> 
>
http://codereview.chromium.org/8508008/diff/1/test/cctest/test-api.cc#newcode...
> test/cctest/test-api.cc:13762: env->Global()->Get(v8::String::New("bar")));
> On 2011/11/09 14:00:10, Søren Gjesse wrote:
> > I don't get these numbers. Shouldn't the difference between them be 5? I I
> count
> > they should be 13 and 18.
> 
> I don't see why the difference between _column_ numbers in two different lines
> should be 5.
> 
> 14 = 12 + 2 as function foo goes on the first line of the script and its
column
> = column inside script(zero-based) + the script column.
> 
> 17 is just zero based offset of the function bar on its line.

Thanks for the explanation. I missed the column offset in the script creation
and that we use zero based offsets (even though I decided to do just that)

Powered by Google App Engine
This is Rietveld 408576698