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

Issue 9694045: Change lookup path for Dart native extensions shared libraries. (Closed)

Created:
8 years, 9 months ago by Bill Hesse
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Change lookup path for Dart native extensions shared libraries. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5524

Patch Set 1 #

Total comments: 9

Patch Set 2 : Port to platforms, address comments. #

Patch Set 3 : Add comments, remove printf statement. #

Total comments: 4

Patch Set 4 : Address comments, fix platform bugs. #

Patch Set 5 : fix isAbsolutePath, remove trailing whitespace. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -28 lines) Patch
M runtime/bin/builtin.dart View 1 2 3 4 1 chunk +15 lines, -1 line 4 comments Download
M runtime/bin/extensions.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/extensions.cc View 1 2 3 1 chunk +21 lines, -6 lines 2 comments Download
M runtime/bin/extensions_linux.cc View 1 2 1 chunk +7 lines, -5 lines 2 comments Download
M runtime/bin/extensions_macos.cc View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
M runtime/bin/extensions_win.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 2 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Bill Hesse
Still needs ports to Mac and Windows, and cleanup.
8 years, 9 months ago (2012-03-13 17:53:29 UTC) #1
Mads Ager (google)
https://chromiumcodereview.appspot.com/9694045/diff/1/runtime/bin/extensions.cc File runtime/bin/extensions.cc (right): https://chromiumcodereview.appspot.com/9694045/diff/1/runtime/bin/extensions.cc#newcode20 runtime/bin/extensions.cc:20: if (strchr(library_name, '/') != library_name && Is this because ...
8 years, 9 months ago (2012-03-14 10:29:47 UTC) #2
Bill Hesse
Comments addressed. https://chromiumcodereview.appspot.com/9694045/diff/1/runtime/bin/extensions.cc File runtime/bin/extensions.cc (right): https://chromiumcodereview.appspot.com/9694045/diff/1/runtime/bin/extensions.cc#newcode20 runtime/bin/extensions.cc:20: if (strchr(library_name, '/') != library_name && Eliminated. ...
8 years, 9 months ago (2012-03-14 17:15:04 UTC) #3
Mads Ager (google)
https://chromiumcodereview.appspot.com/9694045/diff/9001/runtime/bin/extensions.cc File runtime/bin/extensions.cc (right): https://chromiumcodereview.appspot.com/9694045/diff/9001/runtime/bin/extensions.cc#newcode22 runtime/bin/extensions.cc:22: char* library_path = Concatenate(path_component_strings); Instead of these two lines, ...
8 years, 9 months ago (2012-03-15 08:44:09 UTC) #4
Bill Hesse
Comments addressed, tested on platforms with all types of library paths. https://chromiumcodereview.appspot.com/9694045/diff/9001/runtime/bin/extensions.cc File runtime/bin/extensions.cc (right): ...
8 years, 9 months ago (2012-03-15 13:08:54 UTC) #5
Mads Ager (google)
LGTM This should make it possible to build and run the test extension automatically soon, ...
8 years, 9 months ago (2012-03-15 14:14:47 UTC) #6
Bill Hesse
The only step missing is copying the library to tests/standalone/src/io. Everything else works already. Then ...
8 years, 9 months ago (2012-03-15 15:47:44 UTC) #7
Ivan Posva
https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/builtin.dart#newcode72 runtime/bin/builtin.dart:72: var uri = new Uri.fromString(userString); Please add comments why ...
8 years, 9 months ago (2012-03-15 16:18:20 UTC) #8
Bill Hesse
Sorry I didn't see these for committing - I will fix these tomorrow PM in ...
8 years, 9 months ago (2012-03-15 16:24:34 UTC) #9
Bill Hesse
8 years, 8 months ago (2012-04-17 14:46:31 UTC) #10
Comments addressed in changelist
https://chromiumcodereview.appspot.com/10103031/

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/builtin....
File runtime/bin/builtin.dart (right):

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/builtin....
runtime/bin/builtin.dart:72: var uri = new Uri.fromString(userString);
On 2012/03/15 16:18:20, Ivan Posva wrote:
> Please add comments why dart-ext URIs need special handling.

This special function has been dropped, and its functionality merged into
_resolveUri.

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/builtin....
runtime/bin/builtin.dart:85: String filePathFromUri(String userUri) {
On 2012/03/15 16:18:20, Ivan Posva wrote:
> This function essentially does what you are doing manually in C++ under ifdef.

Yes, and with a refactoring, the existing call of this function does the right
thing for the extensions case as well.

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/extensio...
File runtime/bin/extensions.cc (right):

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/extensio...
runtime/bin/extensions.cc:21: #ifdef TARGET_OS_WINDOWS
On 2012/03/15 16:18:20, Ivan Posva wrote:
> Please no ifdefs, they are generally a sign of bad abstractions.

Done.

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/extensio...
File runtime/bin/extensions_linux.cc (right):

https://chromiumcodereview.appspot.com/9694045/diff/7011/runtime/bin/extensio...
runtime/bin/extensions_linux.cc:10: const char* strings[5] = { library_path,
"/lib",
On 2012/03/15 16:18:20, Ivan Posva wrote:
> Just leave out the size. You are NULL terminating this array anyway.

Done.

Powered by Google App Engine
This is Rietveld 408576698