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

Issue 650127: Implement BlindReference object and provide couple of liveedit-specific structures (Closed)

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

Description

Implement BlindReference object and provide couple of liveedit-specific structures Committed: http://code.google.com/p/v8/source/detail?r=3943

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 12

Patch Set 3 : follow codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -0 lines) Patch
M src/bootstrapper.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/liveedit.cc View 1 2 1 chunk +139 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Rybin
Hi Soren Recently I have been porting liveedit implementation from C++ to JavaScript. However some ...
10 years, 10 months ago (2010-02-22 01:48:47 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/650127/diff/1001/1002 File src/bootstrapper.cc (right): http://codereview.chromium.org/650127/diff/1001/1002#newcode1054 src/bootstrapper.cc:1054: // Builtin function for BlindReference -- a JSValue-based ...
10 years, 10 months ago (2010-02-22 10:36:56 UTC) #2
Peter Rybin
10 years, 10 months ago (2010-02-24 19:33:29 UTC) #3
http://codereview.chromium.org/650127/diff/1001/1002
File src/bootstrapper.cc (right):

http://codereview.chromium.org/650127/diff/1001/1002#newcode1054
src/bootstrapper.cc:1054: // Builtin function for BlindReference -- a
JSValue-based object,
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> Could we find a better name that BlindReference? How about OpaqueReference,
> HiddenReference or HiddenObjectReference?

The easiest thing to do.
OpaqueReference it is.

http://codereview.chromium.org/650127/diff/1001/1004
File src/liveedit.cc (right):

http://codereview.chromium.org/650127/diff/1001/1004#newcode132
src/liveedit.cc:132: int GetSmiField(int field_position) {
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> This functions does not return a smi, so ither it should have a different name
> or return a Smi. Maybe GetSmiValueField, maybe remove the Field postfix for
all
> these functions.

GetSmiValueField
Done

http://codereview.chromium.org/650127/diff/1001/1004#newcode140
src/liveedit.cc:140: 
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> This comment mentions SharedFunctionInfo. Have the comments for the two
classes
> been mixed up?

Oh, I'm sorry.
Done

http://codereview.chromium.org/650127/diff/1001/1004#newcode151
src/liveedit.cc:151: SetField(kFunctionNameOffset_, name);
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> Why is the handle scope not at the top?

Done.

http://codereview.chromium.org/650127/diff/1001/1004#newcode199
src/liveedit.cc:199: 
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> Are the name, start_position and end_poition not available in the shared
> function info?

I wanted this setter method and the class itself to be as stupid as possible. It
stores some fields and it provides setters/getters as needed. Someone else
should be preparing data.

If it looks really out of V8 style, please say so; I would fix it.

http://codereview.chromium.org/650127/diff/1001/1004#newcode204
src/liveedit.cc:204: SetField(kSharedInfoOffset_, info_holder);
On 2010/02/22 10:36:56, Søren Gjesse wrote:
> Why is the handle scope not at the top?

Done.

Powered by Google App Engine
This is Rietveld 408576698