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

Issue 12017020: Some more ^= to |= (Closed)

Created:
7 years, 11 months ago by srdjan
Modified:
7 years, 11 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org, siva
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -19 lines) Patch
M runtime/lib/byte_array.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/integers.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/isolate.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/lib/string.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/scanner.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
7 years, 11 months ago (2013-01-18 18:48:24 UTC) #1
hausner
LGTM but see comment about pattern HandleType& h = HandleType::Handle(); h |= value.raw(); Why not ...
7 years, 11 months ago (2013-01-18 19:04:48 UTC) #2
srdjan
7 years, 11 months ago (2013-01-18 20:02:47 UTC) #3
I have not been able to measure performance improvements. However, we know this
is faster way to do it.

https://codereview.chromium.org/12017020/diff/1/runtime/lib/byte_array.cc
File runtime/lib/byte_array.cc (right):

https://codereview.chromium.org/12017020/diff/1/runtime/lib/byte_array.cc#new...
runtime/lib/byte_array.cc:122: bigint |= integer.raw();                         
                         \
On 2013/01/18 19:04:48, hausner wrote:
> Why not Bigint& bigint = Bigint::Handle(integer.raw());

Because 'integer.raw' is not of static type RawBigint* but RawInteger*

https://codereview.chromium.org/12017020/diff/1/runtime/lib/integers.cc
File runtime/lib/integers.cc (right):

https://codereview.chromium.org/12017020/diff/1/runtime/lib/integers.cc#newco...
runtime/lib/integers.cc:25: Bigint& bigint = Bigint::Handle();
On 2013/01/18 19:04:48, hausner wrote:
> Why not Bigint& bigint = Bigint::Handle(i.raw);

Ditto.

https://codereview.chromium.org/12017020/diff/1/runtime/lib/integers.cc#newco...
runtime/lib/integers.cc:32: mint |= i.raw();
On 2013/01/18 19:04:48, hausner wrote:
> ditto

Ditto.

https://codereview.chromium.org/12017020/diff/1/runtime/lib/isolate.cc
File runtime/lib/isolate.cc (right):

https://codereview.chromium.org/12017020/diff/1/runtime/lib/isolate.cc#newcode48
runtime/lib/isolate.cc:48: error |= obj.raw();
On 2013/01/18 19:04:48, hausner wrote:
> ditto

ditto.

https://codereview.chromium.org/12017020/diff/1/runtime/lib/isolate.cc#newcod...
runtime/lib/isolate.cc:189: error_obj |= obj.raw();
This was wrong, fixed it.

https://codereview.chromium.org/12017020/diff/1/runtime/lib/isolate.cc#newcod...
runtime/lib/isolate.cc:335: errobj |= result.raw();
Was wrong, fixed it.

Powered by Google App Engine
This is Rietveld 408576698