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

Issue 9209001: Move utils.h and utils.cc from runtime/vm to runtime/platform (Closed)

Created:
8 years, 11 months ago by Søren Gjesse
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move utils.h and utils.cc from runtime/vm to runtime/platform Moved additional parts of globals.h from vm/ to platform/ to support types and constants used by utils.*. R=ager@google.com, iposva@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3337

Patch Set 1 #

Total comments: 22

Patch Set 2 : Rebased with http://codereview.chromium.org/9189003/ patch set #4 #

Patch Set 3 : Addressed review comments from iposva@ and ager@ #

Total comments: 8

Patch Set 4 : Addresed new comments from ager@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -511 lines) Patch
M client/dom/generated/src/interface/TextMetrics.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/platform/assert.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/platform/globals.h View 1 2 2 chunks +215 lines, -0 lines 0 comments Download
M runtime/platform/platform_headers.gypi View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/platform/platform_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A + runtime/platform/utils.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + runtime/platform/utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/assembler.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/assembler_ia32.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/assembler_x64.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bigint_operations.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bigint_store.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debuginfo.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debuginfo_linux.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/disassembler_arm.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/disassembler_ia32.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/disassembler_x64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/double_internals.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/globals.h View 1 2 2 chunks +3 lines, -217 lines 0 comments Download
M runtime/vm/growable_array.h View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/handles.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/heap.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 2 chunks +1 line, -1 line 0 comments Download
M runtime/vm/os_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_macos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/port.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/scavenger.h View 1 chunk +1 line, -1 line 0 comments Download
D runtime/vm/utils.h View 1 chunk +0 lines, -155 lines 0 comments Download
D runtime/vm/utils.cc View 1 chunk +0 lines, -91 lines 0 comments Download
M runtime/vm/utils_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/virtual_memory.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/virtual_memory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/virtual_memory_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/virtual_memory_macos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/zone.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/zone.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
This is based on http://codereview.chromium.org/9189003/ where assert.h and assert.cc have already been moved to platform/runtime. ...
8 years, 11 months ago (2012-01-13 14:49:39 UTC) #1
Mads Ager (chromium)
LGTM, with the include order fixed in the cc files. http://codereview.chromium.org/9209001/diff/1/runtime/vm/assembler.cc File runtime/vm/assembler.cc (right): http://codereview.chromium.org/9209001/diff/1/runtime/vm/assembler.cc#newcode6 ...
8 years, 11 months ago (2012-01-13 15:10:08 UTC) #2
Ivan Posva
We should really check if there are other things we want to move into the ...
8 years, 11 months ago (2012-01-13 23:51:01 UTC) #3
Søren Gjesse
Rebased after updates to http://codereview.chromium.org/9189003. Addressed all comments. http://codereview.chromium.org/9209001/diff/1/runtime/platform/globals.h File runtime/platform/globals.h (right): http://codereview.chromium.org/9209001/diff/1/runtime/platform/globals.h#newcode144 runtime/platform/globals.h:144: // ...
8 years, 11 months ago (2012-01-16 10:53:00 UTC) #4
Mads Ager (google)
LGTM, with a couple of comments. http://codereview.chromium.org/9209001/diff/12003/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (left): http://codereview.chromium.org/9209001/diff/12003/runtime/bin/dartutils.cc#oldcode6 runtime/bin/dartutils.cc:6: Could you add ...
8 years, 11 months ago (2012-01-16 11:38:46 UTC) #5
Søren Gjesse
8 years, 11 months ago (2012-01-16 12:55:30 UTC) #6
http://codereview.chromium.org/9209001/diff/12003/runtime/bin/dartutils.cc
File runtime/bin/dartutils.cc (left):

http://codereview.chromium.org/9209001/diff/12003/runtime/bin/dartutils.cc#ol...
runtime/bin/dartutils.cc:6: 
On 2012/01/16 11:38:47, Mads Ager wrote:
> Could you add this line back to separate out the header that is implemented?

Done.

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/bigint_store.h
File runtime/vm/bigint_store.h (right):

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/bigint_store.h#n...
runtime/vm/bigint_store.h:9: #include "vm/isolate.h"
On 2012/01/16 11:38:47, Mads Ager wrote:
> Why is this needed here when it wasn't before? Has some VM include been
removed
> from vm/globals.h?

This was due to the wrong ordering of headers in isolate.cc. isolate.h was then
included after bigint_store.h causing Isolate to not be defined. The include
order in isolate.cc is fixed, but I have kept this new include here as this .h
file uses Isolate.

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/disassembler_arm.cc
File runtime/vm/disassembler_arm.cc (right):

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/disassembler_arm...
runtime/vm/disassembler_arm.cc:8: #include "platform/globals.h"  // Needed here
to get TARGET_ARCH_ARM.
On 2012/01/16 11:38:47, Mads Ager wrote:
> Maybe we should keep all the globals.h includes in the vm directory pointing
to
> vm/globals.h to avoid confusion?
> 
> If you do that here, remember the other disassembler files as well.

Done.

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/isolate.cc
File runtime/vm/isolate.cc (right):

http://codereview.chromium.org/9209001/diff/12003/runtime/vm/isolate.cc#newco...
runtime/vm/isolate.cc:16: #include "vm/isolate.h"
On 2012/01/16 11:38:47, Mads Ager wrote:
> Undo this change.

Done.

Powered by Google App Engine
This is Rietveld 408576698