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

Issue 23480005: Change Bool::Get to return a handle instead of a pointer to a raw object. (Closed)

Created:
7 years, 3 months ago by Kevin Millikin (Google)
Modified:
7 years, 3 months ago
Reviewers:
srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, siva
Visibility:
Public.

Description

Change Bool::Get to return a handle instead of a pointer to a raw object. Replace occurrences of 'expr ? Bool::True() : Bool::False()' with simply 'Bool::Get(expr)' and analogously for its negation. The pointer to the raw object can still be extracted with 'Bool::Get(expr).raw()'. R=iposva@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=26770

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -100 lines) Patch
M runtime/lib/double.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M runtime/lib/identical.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/integers.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/mirrors.cc View 6 chunks +12 lines, -15 lines 0 comments Download
M runtime/lib/object.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/regexp.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/simd128.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/code_generator.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 8 chunks +10 lines, -19 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/object.h View 1 chunk +2 lines, -2 lines 2 comments Download
M runtime/vm/object.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Kevin Millikin (Google)
I think this is clearer for the reader and more convenient for the writer.
7 years, 3 months ago (2013-08-27 10:42:06 UTC) #1
srdjan
7 years, 3 months ago (2013-08-27 15:28:04 UTC) #2
srdjan
lgtm https://codereview.chromium.org/23480005/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/23480005/diff/1/runtime/vm/object.h#newcode5106 runtime/vm/object.h:5106: } Best from both worlds? add: static RawBool* ...
7 years, 3 months ago (2013-08-27 15:32:43 UTC) #3
Ivan Posva
LGTM -ip https://codereview.chromium.org/23480005/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/23480005/diff/1/runtime/vm/object.h#newcode5106 runtime/vm/object.h:5106: } On 2013/08/27 15:32:44, srdjan wrote: > ...
7 years, 3 months ago (2013-08-27 15:51:25 UTC) #4
Kevin Millikin (Google)
7 years, 3 months ago (2013-08-28 08:39:30 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as r26770 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698