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

Issue 2173403002: Replace SmartArrayPointer<T> with unique_ptr<T[]> (Closed)

Created:
4 years, 5 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 5 months ago
CC:
oth, rmcilroy, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Replace SmartArrayPointer<T> with unique_ptr<T[]> R=bmeurer@chromium.org BUG= Committed: https://crrev.com/37ba8f961bd4e18815f7c56683ed1ea4d2695b7d Cr-Commit-Position: refs/heads/master@{#38007}

Patch Set 1 #

Patch Set 2 : less redness #

Patch Set 3 : even less redness #

Total comments: 17

Patch Set 4 : updates #

Total comments: 2

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -171 lines) Patch
M src/asmjs/asm-typer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M src/base/smart-pointers.h View 1 chunk +0 lines, -20 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M src/codegen.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M src/compiler.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/graph-visualizer.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/compiler/graph-visualizer.cc View 1 2 3 4 chunks +7 lines, -5 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M src/compiler/pipeline-statistics.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M src/deoptimizer.cc View 11 chunks +12 lines, -17 lines 0 comments Download
M src/disassembler.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/frames.cc View 2 chunks +2 lines, -1 line 0 comments Download
M src/gdb-jit.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/interface-descriptors.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/interface-descriptors.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M src/log.cc View 10 chunks +12 lines, -11 lines 0 comments Download
M src/messages.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/messages.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M src/objects.cc View 1 2 3 5 chunks +12 lines, -14 lines 0 comments Download
M src/objects-printer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M src/perf-jit.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M src/profiler/strings-storage.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/regexp/jsregexp.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/runtime/runtime.h View 3 chunks +4 lines, -3 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 2 3 7 chunks +11 lines, -9 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 8 chunks +9 lines, -8 lines 0 comments Download
M src/runtime/runtime-test.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/string-stream.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/string-stream.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M src/wasm/decoder.h View 1 2 3 5 chunks +7 lines, -5 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M src/wasm/wasm-module.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/wasm/wasm-result.h View 1 2 3 4 3 chunks +14 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-operator.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-func-name-inference.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 2 chunks +3 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M test/cctest/test-regexp.cc View 2 chunks +2 lines, -1 line 0 comments Download
M test/cctest/wasm/test-run-wasm-interpreter.cc View 4 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
jochen (gone - plz use gerrit)
4 years, 5 months ago (2016-07-25 06:53:11 UTC) #1
jochen (gone - plz use gerrit)
+rossberg for wasm/ and parsing/
4 years, 5 months ago (2016-07-25 07:58:48 UTC) #13
jochen (gone - plz use gerrit)
+Igor, can you please review the entire CL? it's pretty mechanical, except for the wasm::Result ...
4 years, 5 months ago (2016-07-25 08:10:41 UTC) #15
rossberg
parsing/ and wasm/ LGTM
4 years, 5 months ago (2016-07-25 08:11:29 UTC) #16
rossberg
parsing/ and wasm/ LGTM
4 years, 5 months ago (2016-07-25 08:11:29 UTC) #17
Igor Sheludko
nits: https://codereview.chromium.org/2173403002/diff/40001/src/compiler/graph-visualizer.cc File src/compiler/graph-visualizer.cc (right): https://codereview.chromium.org/2173403002/diff/40001/src/compiler/graph-visualizer.cc#newcode74 src/compiler/graph-visualizer.cc:74: return std::unique_ptr<const char[]>(const_cast<const char*>(buffer)); I think const_cast<> is ...
4 years, 5 months ago (2016-07-25 08:56:45 UTC) #20
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2173403002/diff/40001/src/compiler/graph-visualizer.cc File src/compiler/graph-visualizer.cc (right): https://codereview.chromium.org/2173403002/diff/40001/src/compiler/graph-visualizer.cc#newcode74 src/compiler/graph-visualizer.cc:74: return std::unique_ptr<const char[]>(const_cast<const char*>(buffer)); On 2016/07/25 at 08:56:44, Igor ...
4 years, 5 months ago (2016-07-25 09:14:49 UTC) #23
Igor Sheludko
lgtm once this comment is addressed: https://codereview.chromium.org/2173403002/diff/60001/src/wasm/wasm-result.h File src/wasm/wasm-result.h (right): https://codereview.chromium.org/2173403002/diff/60001/src/wasm/wasm-result.h#newcode68 src/wasm/wasm-result.h:68: error_msg.swap(that.error_msg); Since "that" ...
4 years, 5 months ago (2016-07-25 09:37:32 UTC) #24
Benedikt Meurer
LGTM (rubber-stamped)
4 years, 5 months ago (2016-07-25 09:53:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2173403002/80001
4 years, 5 months ago (2016-07-25 09:55:02 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-25 10:24:51 UTC) #31
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/37ba8f961bd4e18815f7c56683ed1ea4d2695b7d Cr-Commit-Position: refs/heads/master@{#38007}
4 years, 5 months ago (2016-07-25 10:27:55 UTC) #33
jochen (gone - plz use gerrit)
4 years, 5 months ago (2016-07-25 10:35:08 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/2173403002/diff/60001/src/wasm/wasm-result.h
File src/wasm/wasm-result.h (right):

https://codereview.chromium.org/2173403002/diff/60001/src/wasm/wasm-result.h#...
src/wasm/wasm-result.h:68: error_msg.swap(that.error_msg);
On 2016/07/25 at 09:37:32, Igor Sheludko wrote:
> Since "that" is probably going to live for a while
>   error_msg = std::move(that.error_msg);
> is more correct here.

done

Powered by Google App Engine
This is Rietveld 408576698