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

Issue 9008012: Move handlified functions from handles.cc to objects.cc (Closed)

Created:
9 years ago by ulan
Modified:
8 years, 11 months ago
CC:
v8-dev
Visibility:
Public.

Description

Move handlified functions from handles.cc to objects.cc BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=10348

Patch Set 1 #

Total comments: 30

Patch Set 2 : Address comments. #

Patch Set 3 : Simplify ToFastProperties, ToSlowProperties #

Total comments: 7

Patch Set 4 : Fix formatting #

Patch Set 5 : More formatting fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -398 lines) Patch
M src/api.cc View 1 2 3 6 chunks +7 lines, -6 lines 0 comments Download
M src/bootstrapper.cc View 1 14 chunks +60 lines, -40 lines 0 comments Download
M src/debug.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/factory.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/handles.h View 6 chunks +0 lines, -65 lines 0 comments Download
M src/handles.cc View 7 chunks +0 lines, -162 lines 0 comments Download
M src/ic.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/isolate.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 4 chunks +29 lines, -12 lines 0 comments Download
M src/json-parser.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/liveedit.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 11 chunks +60 lines, -3 lines 0 comments Download
M src/objects.cc View 1 2 3 15 chunks +155 lines, -13 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 26 chunks +69 lines, -82 lines 0 comments Download
M src/stub-cache.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ulan
Please take a look. This CL is the first in series of changes that convert ...
8 years, 11 months ago (2012-01-03 11:11:30 UTC) #1
Kevin Millikin (Chromium)
Thanks. I have some suggestions. http://codereview.chromium.org/9008012/diff/1/src/api.cc File src/api.cc (right): http://codereview.chromium.org/9008012/diff/1/src/api.cc#newcode2837 src/api.cc:2837: i::Handle<i::Object> result = i::Object::GetPrototype(self); ...
8 years, 11 months ago (2012-01-04 13:00:32 UTC) #2
ulan
Please take another look. I addressed all comments except the one about MUST_USE_RESULT (see my ...
8 years, 11 months ago (2012-01-05 11:16:35 UTC) #3
Kevin Millikin (Chromium)
LGTM, formatting suggestion below. http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc#newcode1400 src/runtime.cc:1400: RETURN_IF_EMPTY_HANDLE(isolate, No biggy, I prefer ...
8 years, 11 months ago (2012-01-05 12:59:39 UTC) #4
ulan
8 years, 11 months ago (2012-01-05 17:13:17 UTC) #5
Addressed comments, landing.

I will deal with MUST_USE_RESULT in another CL. Is it worth adding an explicit
copy constructor to the Handle class so that warnings work in gcc 4.4.3?

http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc#newcode1400
src/runtime.cc:1400: RETURN_IF_EMPTY_HANDLE(isolate,
On 2012/01/05 12:59:39, Kevin Millikin wrote:
> No biggy, I prefer my first suggestion (but you may disagree):
> 
> RETURN_IF_EMPTY_HANDLE(
>     isolate,
>     JSReceiver::SetProperty(object, name, initial_value, mode,
kNonStrictMode));
> 
> One fewer line, doesn't run to the right as fast (so scales better), and
breaks
> the line at a better logical place---the commas in the outer
> RETURN_IF_EMPTY_HANDLE argument list don't bind as "tightly" as the commas in
> the nested SetProperty argument list.

I fixed the style for RETURN_IF_EMPTY_HANDLE (although SetProperty(...) does not
always fit into one line).

I am leaving CHECK_NOT_EMPTY_HANDLE style unchanged, because fixing it would
just add more new lines.

http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc#newcode1443
src/runtime.cc:1443: RETURN_IF_EMPTY_HANDLE(isolate,
On 2012/01/05 12:59:39, Kevin Millikin wrote:
> Same story:
> 
> RETURN_IF_EMPTY_HANDLE(
>     isolate,
>     JSReceiver::SetProperty(object, name, value, mode, kNonStrictMode));
> 
> Here you'll have the kind-of unsightly dangling '(', might as well try to have
> it at a place that binds least tightly in the expression.

Done.

http://codereview.chromium.org/9008012/diff/7001/src/runtime.cc#newcode1554
src/runtime.cc:1554: RETURN_IF_EMPTY_HANDLE(isolate,
On 2012/01/05 12:59:39, Kevin Millikin wrote:
> Same story:
> 
> RETURN_IF_EMPTY_HANDLE(
>     isolate,
>     JSReceiver::SetProperty(global, name, value, attributes, kNonStrictMode));

Done.

Powered by Google App Engine
This is Rietveld 408576698