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

Issue 17406010: Move getters from Options to Platform (Closed)

Created:
7 years, 6 months ago by Søren Gjesse
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move getters from Options to Platform The getters for executable, script and version are now statics on Platform. I kept them on Options for now, but updated most tests to use Platform. R=ajohnsen@google.com, floitsch@google.com, iposva@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=24401

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed Dart_GetType #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -195 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_experimental/lib/options.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_experimental/lib/src/generated/java_io.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_experimental/lib/src/services/runtime/coverage/coverage_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/test/message_extraction/message_extraction_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/metatest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/test/scheduled_process_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/bin/common.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M runtime/bin/common_patch.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 chunks +19 lines, -12 lines 0 comments Download
M runtime/bin/platform.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/bin/platform_patch.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/dartdoc/test/dartdoc_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/lib/io_patch.dart View 1 2 chunks +3 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/io.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/sdk.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/options.dart View 2 chunks +9 lines, -21 lines 0 comments Download
M sdk/lib/io/platform.dart View 2 chunks +30 lines, -0 lines 0 comments Download
M sdk/lib/io/platform_impl.dart View 1 2 chunks +6 lines, -11 lines 0 comments Download
M tests/compiler/dart2js/bad_loop_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/codegen_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/diagnose_ambiguous_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/memory_source_file_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mini_parser_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mirror_tree_shaking_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mirrors_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/unneeded_part_js_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/mirrors/library_uri_io_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/coverage_test.dart View 2 chunks +2 lines, -4 lines 0 comments Download
M tests/standalone/debugger/breakpoint_resolved_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/standalone/debugger/debug_lib.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/debugger/tostring_throws_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/http_launch_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/dart_std_io_pipe_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/file_read_special_device_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/standalone/io/file_read_stdio_script.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/file_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_early_client_close2_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_response_test.dart View 6 chunks +9 lines, -9 lines 0 comments Download
M tests/standalone/io/https_client_certificate_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/https_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/options_test.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M tests/standalone/io/platform_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/standalone/io/process_broken_pipe_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_check_arguments_script.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/standalone/io/process_check_arguments_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_environment_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/process_non_ascii_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_pid_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/process_run_output_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/process_set_exit_code_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/standalone/io/process_shell_test.dart View 2 chunks +3 lines, -5 lines 0 comments Download
M tests/standalone/io/process_stderr_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_stdin_transform_unsubscribe_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_stdout_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_test_util.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_server_closing_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_server_socket_argument_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_server_socket_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_socket_pause_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_socket_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/regress_7191_script.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/regress_7191_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/standalone/io/regress_7679_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_builtin_roots_database_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_no_builtin_roots_database_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_server_client_certificate_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_server_closing_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_server_socket_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_socket_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/skipping_dart2js_compilations_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/skipping_dart2js_compilations_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/socket_upgrade_to_secure_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/test_extension_fail_test.dart View 2 chunks +3 lines, -5 lines 0 comments Download
M tests/standalone/io/test_extension_test.dart View 2 chunks +3 lines, -5 lines 0 comments Download
M tests/standalone/io/test_runner_exit_code_script.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/test_runner_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/windows_environment_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/standalone/typed_data_isolate_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Søren Gjesse
This is in preparation for refactoring/removing the Options class.
7 years, 6 months ago (2013-06-20 15:33:20 UTC) #1
Anders Johnsen
LGTM, my only question is the Platform.script move. Do we expect this to stay as ...
7 years, 6 months ago (2013-06-20 15:57:43 UTC) #2
Bob Nystrom
Much better API. :) I'm really excited about this change.
7 years, 6 months ago (2013-06-20 16:51:46 UTC) #3
Ivan Posva
On 2013/06/20 15:33:20, Søren Gjesse wrote: > This is in preparation for refactoring/removing the Options ...
7 years, 6 months ago (2013-06-21 00:59:31 UTC) #4
floitsch
LGTM (once Anders' comment is addressed).
7 years, 6 months ago (2013-06-21 16:01:07 UTC) #5
Ivan Posva
LGTM with comments. -Ivan https://codereview.chromium.org/17406010/diff/1/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/17406010/diff/1/runtime/bin/main.cc#newcode410 runtime/bin/main.cc:410: Dart_Handle platform_class = Dart_GetClass( It ...
7 years, 6 months ago (2013-06-24 21:16:46 UTC) #6
Søren Gjesse
7 years, 6 months ago (2013-06-25 12:57:21 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r24401 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698