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

Issue 10826233: Add _android files for building DartVM on Android (Closed)

Created:
8 years, 4 months ago by jackpal
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add _android files for building DartVM on Android Split directory_posix -> directory_(android|linux|macos) This allows us to cleanly make Android-specific changes to directory_android.cc Copy all _linux files to _android files and edit as needed to account for the differences between Linux and Android: + getcwd(0, NULL) doesn't work on Android, have to emulate + Android doesn't have a '/tmp' directory, have to emulate + Android doesn't provide mkdtemp(), have to emulate. + Small differences in the available system include files. + Use pthread_cond_timedwait_monotonic instead of pthread_condattr_setclock Committed: https://code.google.com/p/dart/source/detail?r=10613

Patch Set 1 #

Total comments: 13

Patch Set 2 : Incorporate reviewer's feedback (asiva, Soren Gjesse) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -480 lines) Patch
M runtime/bin/builtin_impl_sources.gypi View 4 chunks +12 lines, -1 line 0 comments Download
M runtime/bin/dbg_connection.h View 1 chunk +3 lines, -1 line 0 comments Download
A + runtime/bin/dbg_connection_android.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + runtime/bin/dbg_connection_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/directory_android.cc View 1 3 chunks +35 lines, -3 lines 0 comments Download
A + runtime/bin/directory_linux.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/directory_macos.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
D runtime/bin/directory_posix.cc View 1 chunk +0 lines, -432 lines 0 comments Download
M runtime/bin/eventhandler.h View 1 chunk +3 lines, -1 line 0 comments Download
A + runtime/bin/eventhandler_android.h View 2 chunks +5 lines, -4 lines 0 comments Download
A + runtime/bin/eventhandler_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/extensions_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/fdutils_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/file_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/bin/platform_android.cc View 3 chunks +1 line, -5 lines 0 comments Download
A + runtime/bin/process_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/bin/socket.h View 1 chunk +3 lines, -1 line 0 comments Download
A + runtime/bin/socket_android.h View 1 chunk +3 lines, -3 lines 0 comments Download
A + runtime/bin/socket_android.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
A + runtime/bin/utils_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/platform/globals.h View 2 chunks +7 lines, -4 lines 0 comments Download
M runtime/platform/platform_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/platform/thread.h View 1 chunk +3 lines, -1 line 0 comments Download
A + runtime/platform/thread_android.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + runtime/platform/thread_android.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/platform/utils.h View 1 chunk +3 lines, -1 line 0 comments Download
A + runtime/platform/utils_android.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + runtime/vm/debuginfo_android.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
A + runtime/vm/gdbjit_android.h View 1 chunk +4 lines, -4 lines 0 comments Download
A + runtime/vm/gdbjit_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + runtime/vm/os_android.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
A + runtime/vm/virtual_memory_android.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M runtime/vm/vm_sources.gypi View 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jackpal
Patch 5 of 6 for building Dart VM for Android This patch creates all the ...
8 years, 4 months ago (2012-08-09 18:28:34 UTC) #1
Emily Fortuna
this seems fine to me, but I'm going to let someone more familiar with the ...
8 years, 4 months ago (2012-08-09 20:06:01 UTC) #2
siva
LGTM. https://chromiumcodereview.appspot.com/10826233/diff/1/runtime/bin/directory_android.cc File runtime/bin/directory_android.cc (right): https://chromiumcodereview.appspot.com/10826233/diff/1/runtime/bin/directory_android.cc#newcode398 runtime/bin/directory_android.cc:398: // Android doesn't currently provide mkdtemp end comment ...
8 years, 4 months ago (2012-08-10 00:13:47 UTC) #3
Søren Gjesse
lgtm http://codereview.chromium.org/10826233/diff/1/runtime/bin/directory_android.cc File runtime/bin/directory_android.cc (right): http://codereview.chromium.org/10826233/diff/1/runtime/bin/directory_android.cc#newcode399 runtime/bin/directory_android.cc:399: static char* Mkdtemp(char* path_template) { How about calling ...
8 years, 4 months ago (2012-08-10 07:28:28 UTC) #4
jackpal
http://codereview.chromium.org/10826233/diff/1/runtime/bin/directory_android.cc File runtime/bin/directory_android.cc (right): http://codereview.chromium.org/10826233/diff/1/runtime/bin/directory_android.cc#newcode398 runtime/bin/directory_android.cc:398: // Android doesn't currently provide mkdtemp On 2012/08/10 00:13:47, ...
8 years, 4 months ago (2012-08-13 22:59:42 UTC) #5
cshapiro
8 years, 4 months ago (2012-08-14 01:24:06 UTC) #6
http://codereview.chromium.org/10826233/diff/1/runtime/vm/gdbjit_android.cc
File runtime/vm/gdbjit_android.cc (right):

http://codereview.chromium.org/10826233/diff/1/runtime/vm/gdbjit_android.cc#n...
runtime/vm/gdbjit_android.cc:3: // BSD-style license that can be found in the
LICENSE file.
What version of GDB are you using on the target?  They should all have JIT
support.  This message is often reported in error and if you restart the GDB
session it may go away.

Powered by Google App Engine
This is Rietveld 408576698