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

Issue 186473003: Refactor native extension shared library lookup. (Closed)

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

Description

Refactor native extension shared library lookup. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=33275

Patch Set 1 #

Patch Set 2 : Move a platform-independent block to extensions.cc #

Total comments: 4

Patch Set 3 : Add check for loading from http(s): #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -79 lines) Patch
M runtime/bin/builtin.dart View 1 2 2 chunks +47 lines, -3 lines 2 comments Download
M runtime/bin/dartutils.h View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 2 chunks +43 lines, -15 lines 0 comments Download
M runtime/bin/extensions.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/bin/extensions.cc View 1 2 2 chunks +9 lines, -25 lines 0 comments Download
M runtime/bin/extensions_android.cc View 1 1 chunk +2 lines, -8 lines 0 comments Download
M runtime/bin/extensions_linux.cc View 1 1 chunk +2 lines, -8 lines 0 comments Download
M runtime/bin/extensions_macos.cc View 1 1 chunk +2 lines, -8 lines 0 comments Download
M runtime/bin/extensions_win.cc View 1 1 chunk +2 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bill Hesse
This refactoring is needed to get the platform-specific shared native library filename earlier. It also ...
6 years, 9 months ago (2014-03-04 12:58:06 UTC) #1
Søren Gjesse
lgtm https://codereview.chromium.org/186473003/diff/20001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/186473003/diff/20001/runtime/bin/builtin.dart#newcode267 runtime/bin/builtin.dart:267: // Returns the directory part, the filename part, ...
6 years, 9 months ago (2014-03-04 13:09:02 UTC) #2
Bill Hesse
https://codereview.chromium.org/186473003/diff/20001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/186473003/diff/20001/runtime/bin/builtin.dart#newcode267 runtime/bin/builtin.dart:267: // Returns the directory part, the filename part, and ...
6 years, 9 months ago (2014-03-04 14:36:31 UTC) #3
Bill Hesse
Committed patchset #3 manually as r33275 (presubmit successful).
6 years, 9 months ago (2014-03-04 14:39:22 UTC) #4
Ivan Posva
6 years, 9 months ago (2014-03-04 20:03:56 UTC) #5
Message was sent while issue was closed.
I like having most of the concat work being done in the Dart code, but I am not
sure how well that will hold up in the long term.

-Ivan

https://codereview.chromium.org/186473003/diff/40001/runtime/bin/builtin.dart
File runtime/bin/builtin.dart (right):

https://codereview.chromium.org/186473003/diff/40001/runtime/bin/builtin.dart...
runtime/bin/builtin.dart:269: String _extensionPathFromUri(String userUri) {
Please remove the types in this file. They will only serve the purpose of
causing checked mode failures as can be seen here where we are returning a List
but the function is typed to return a String.

https://codereview.chromium.org/186473003/diff/40001/runtime/bin/builtin.dart...
runtime/bin/builtin.dart:296: filename = 'lib$name.so';
We will also have to have a plan to deal with different OS and architecture
combinations being served from the same location.

This didn't use to be as much of an issue as the extensions were only available
locally.

Powered by Google App Engine
This is Rietveld 408576698