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

Issue 12832002: Parallel recompilation: fewer handle dereferences and tighter checks. (Closed)

Created:
7 years, 9 months ago by Yang
Modified:
7 years, 9 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Parallel recompilation: fewer handle dereferences and tighter checks. BUG= Committed: https://code.google.com/p/v8/source/detail?r=13935

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -171 lines) Patch
M src/arm/lithium-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 3 chunks +11 lines, -1 line 0 comments Download
M src/execution.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/flags.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/handles.h View 1 2 2 chunks +7 lines, -23 lines 0 comments Download
M src/handles-inl.h View 3 chunks +23 lines, -27 lines 0 comments Download
M src/heap.h View 2 chunks +16 lines, -0 lines 0 comments Download
M src/heap.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/hydrogen.h View 2 chunks +1 line, -3 lines 0 comments Download
M src/hydrogen.cc View 7 chunks +31 lines, -27 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 9 chunks +48 lines, -23 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 6 chunks +52 lines, -55 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/isolate.cc View 1 2 2 chunks +29 lines, -1 line 0 comments Download
M src/mips/lithium-mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/optimizing-compiler-thread.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/v8.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
Please take a look. Review guidance: - handles.h and handles-inl.h redefine the scope that limits ...
7 years, 9 months ago (2013-03-13 13:11:26 UTC) #1
Jakob Kummerow
LGTM with a few minor comments. https://codereview.chromium.org/12832002/diff/1/src/handles.h File src/handles.h (right): https://codereview.chromium.org/12832002/diff/1/src/handles.h#newcode344 src/handles.h:344: enum State { ...
7 years, 9 months ago (2013-03-13 15:50:31 UTC) #2
Yang
Committed patchset #3 manually as r13935 (presubmit successful).
7 years, 9 months ago (2013-03-13 16:13:20 UTC) #3
Yang
7 years, 9 months ago (2013-03-13 17:00:15 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/12832002/diff/1/src/handles.h
File src/handles.h (right):

https://codereview.chromium.org/12832002/diff/1/src/handles.h#newcode344
src/handles.h:344: enum State { ALLOW, DISALLOW};
On 2013/03/13 15:50:31, Jakob wrote:
> nit: space before '}'

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.cc
File src/hydrogen-instructions.cc (right):

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.cc#...
src/hydrogen-instructions.cc:1852: ASSERT(!r.IsNone());
On 2013/03/13 15:50:31, Jakob wrote:
> This last ASSERT is unnecessary, you get it for free from set_representation
> (called from Initialize()).

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.cc#...
src/hydrogen-instructions.cc:1858: int32_t integer_value, Representation r, 
Handle<Object> optional_handle)
On 2013/03/13 15:50:31, Jakob wrote:
> each argument on its own line please

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.cc#...
src/hydrogen-instructions.cc:1870: double double_value, Representation r,
Handle<Object> optional_handle)
On 2013/03/13 15:50:31, Jakob wrote:
> each argument on its own line please

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h#n...
src/hydrogen-instructions.h:402: bool IsTaggedPrimitive() {
On 2013/03/13 15:50:31, Jakob wrote:
> forgot to mark this const too?

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h#n...
src/hydrogen-instructions.h:3175: bool BooleanValue() { return boolean_value_; }
On 2013/03/13 15:50:31, Jakob wrote:
> nit: boolean_value()

I thought camel case was more appropriate since StringValue() and DoubleValue()
are also simple getters.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h#n...
src/hydrogen-instructions.h:3243: bool has_int32_value_ : 1;
On 2013/03/13 15:50:31, Jakob wrote:
> I would be nice to replace this with type_from_value_, but I realize that
HType
> currently can't express the concepts "int32" and "double". :-(

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h#n...
src/hydrogen-instructions.h:3248: bool is_internalized_string_;  //
TODO(yangguo) make this part of HType
On 2013/03/13 15:50:31, Jakob wrote:
> Please move this up to the other has_$FOO_value_ properties.

Done.

https://codereview.chromium.org/12832002/diff/1/src/hydrogen-instructions.h#n...
src/hydrogen-instructions.h:3249: bool boolean_value_;
On 2013/03/13 15:50:31, Jakob wrote:
> Please move this up to the other $FOO_value_ properties.
> 
> In fact, please put all four bools next to each other, and restrict them all
to
> using a single bit, so we can save some memory here.

Done.

Powered by Google App Engine
This is Rietveld 408576698