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

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed)

Created:
4 years, 9 months ago by zra
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Really remove io support when dart:io is unsupported. Previously we would compile in implementaitions of native calls for IO functions that would never be used. This CL provides implementations that throw a Dart exception if they're called by mistake. It also uses a DART_IO_DISABLED preprocessor define to clean up the build files and check that we're not including code we shouldn't. R=iposva@google.com, johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/7308e58c3ffc1d295ffbf173c68661f2611e86b0

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1301 lines, -255 lines) Patch
M runtime/bin/BUILD.gn View 1 2 4 chunks +4 lines, -45 lines 0 comments Download
M runtime/bin/bin.gypi View 1 13 chunks +173 lines, -38 lines 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 2 chunks +8 lines, -5 lines 0 comments Download
M runtime/bin/dartutils.h View 1 chunk +1 line, -3 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +7 lines, -8 lines 0 comments Download
M runtime/bin/directory.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/directory_unsupported.cc View 1 chunk +70 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler.cc View 2 chunks +7 lines, -1 line 0 comments Download
M runtime/bin/eventhandler_android.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/eventhandler_unsupported.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/file.cc View 4 chunks +4 lines, -90 lines 0 comments Download
A runtime/bin/file_support.cc View 1 chunk +109 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher_android.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher_linux.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher_macos.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/file_system_watcher_unsupported.cc View 1 chunk +58 lines, -0 lines 0 comments Download
M runtime/bin/file_system_watcher_win.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/file_unsupported.cc View 1 chunk +202 lines, -0 lines 0 comments Download
M runtime/bin/filter.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/filter.cc View 2 chunks +6 lines, -1 line 0 comments Download
M runtime/bin/filter_unsupported.cc View 2 chunks +10 lines, -1 line 0 comments Download
M runtime/bin/io_impl_sources.gypi View 5 chunks +6 lines, -24 lines 0 comments Download
M runtime/bin/io_service.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/io_service.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/io_service_no_ssl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/io_service_no_ssl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/io_service_unsupported.cc View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/bin/main.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/platform.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M runtime/bin/platform_android.cc View 2 chunks +6 lines, -1 line 0 comments Download
M runtime/bin/platform_linux.cc View 2 chunks +6 lines, -1 line 0 comments Download
M runtime/bin/platform_macos.cc View 2 chunks +7 lines, -1 line 0 comments Download
A runtime/bin/platform_unsupported.cc View 1 chunk +70 lines, -0 lines 0 comments Download
M runtime/bin/platform_win.cc View 2 chunks +7 lines, -1 line 0 comments Download
M runtime/bin/process.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/bin/process_android.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 4 chunks +8 lines, -0 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
A runtime/bin/process_unsupported.cc View 1 1 chunk +97 lines, -0 lines 0 comments Download
M runtime/bin/process_win.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M runtime/bin/root_certificates_unsupported.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/secure_socket_boringssl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket_macos.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket_unsupported.cc View 3 chunks +15 lines, -3 lines 0 comments Download
M runtime/bin/socket.h View 2 chunks +8 lines, -4 lines 1 comment Download
M runtime/bin/socket.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/bin/socket_android.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_android.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_linux.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_linux.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_macos.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_macos.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/socket_unsupported.cc View 1 chunk +148 lines, -0 lines 0 comments Download
M runtime/bin/socket_win.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_win.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/stdio.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/stdio.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M runtime/bin/stdio_android.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/stdio_linux.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/stdio_macos.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/bin/stdio_unsupported.cc View 1 chunk +52 lines, -0 lines 0 comments Download
M runtime/bin/stdio_win.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
zra
4 years, 9 months ago (2016-03-25 21:40:56 UTC) #2
zra
+johnmccutchan for BUILD.gn change
4 years, 9 months ago (2016-03-25 22:05:41 UTC) #4
Ivan Posva
LGTM -ip
4 years, 8 months ago (2016-03-29 00:45:46 UTC) #5
Cutch
lgtm
4 years, 8 months ago (2016-03-29 14:58:56 UTC) #6
zra
Committed patchset #3 (id:40001) manually as 7308e58c3ffc1d295ffbf173c68661f2611e86b0 (presubmit successful).
4 years, 8 months ago (2016-03-29 18:22:08 UTC) #8
Bill Hesse
4 years, 8 months ago (2016-03-30 09:50:27 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1839463002/diff/40001/runtime/bin/socket.h
File runtime/bin/socket.h (right):

https://codereview.chromium.org/1839463002/diff/40001/runtime/bin/socket.h#ne...
runtime/bin/socket.h:8: #if defined(DART_IO_DISABLED)
This error is being hit on Windows compilations of Dartium.
So Dartium is broken since this commit.

Powered by Google App Engine
This is Rietveld 408576698