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

Issue 23596007: Remove usage of dart:json. (Closed)

Created:
7 years, 3 months ago by floitsch
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Bob Nystrom, nweiz, Emily Fortuna
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Update generated library. #

Total comments: 4

Patch Set 3 : Update comment. #

Patch Set 4 : Fix 80 chars. #

Patch Set 5 : Rebase. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -335 lines) Patch
M editor/tools/plugins/com.google.dart.tools.core_test/src-dart/pub_package_server.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/docgen/lib/docgen.dart View 5 chunks +6 lines, -5 lines 0 comments Download
M pkg/http/lib/testing.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/http/test/mock_client_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http/test/utils.dart View 3 chunks +2 lines, -3 lines 0 comments Download
M pkg/http_server/lib/http_server.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/http_server/lib/src/http_body_impl.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/src/lazy_locale_data.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/intl/test/message_extraction/extract_to_json.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/intl/test/message_extraction/generate_from_json.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/intl/test/message_extraction/make_hardcoded_translation.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/intl/tool/generate_locale_data_files.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/oauth2/lib/src/credentials.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/oauth2/lib/src/handle_access_token_response.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/oauth2/test/authorization_code_grant_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/oauth2/test/client_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/oauth2/test/credentials_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M pkg/oauth2/test/handle_access_token_response_test.dart View 3 chunks +6 lines, -6 lines 0 comments Download
M pkg/polymer/lib/component_build.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer/lib/deploy.dart View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer/lib/src/compiler.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/polymer/lib/src/messages.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/serialization/test/serialization_test.dart View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/source_maps/lib/builder.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/source_maps/lib/parser.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/source_maps/test/builder_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/source_maps/test/parser_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/source_maps/test/printer_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M pkg/unittest/lib/interactive_html_config.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/yaml/lib/yaml.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/running_isolates.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/service_request.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/vmservice.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/chat/chat_server_lib.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M samples/chat/chat_stress_client.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M samples/chat/dart_client/chat.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M samples/newissues/newissues.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M samples/solar3d/web/solar.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/solar3d/web/sphere_model_data.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/swarm/UIState.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/swarm/swarmlib.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/tests/samples/chat/chat_server_test.dart View 9 chunks +9 lines, -9 lines 0 comments Download
M samples/third_party/dromaeo/Dromaeo.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/third_party/dromaeo/common/BenchUtil.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M samples/third_party/dromaeo/common/common.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/third_party/dromaeo/tests/RunnerSuite.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/third_party/dromaeo/tests/dom-attr-html.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/third_party/dromaeo/tests/dom-modify-html.dart View 1 2 3 2 chunks +4 lines, -3 lines 3 comments Download
M samples/third_party/dromaeo/tests/dom-query-html.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/third_party/dromaeo/tests/dom-traverse-html.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/client/client-live-nav.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/cache.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/http.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/hosted.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/archives_and_uploads_a_package_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/force_publishes_if_tests_are_no_warnings_or_errors_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/force_publishes_if_there_are_warnings_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/package_creation_provides_a_malformed_error_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/package_creation_provides_a_malformed_success_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/package_creation_provides_an_error_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_fields_is_not_a_map_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_is_missing_fields_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_is_missing_url_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_provides_an_error_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/upload_form_url_is_not_a_string_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/utils.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/oauth2/utils.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/oauth2/with_a_server_rejected_refresh_token_authenticates_again_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/pub_uploader_test.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/test/serve/installs_first_if_dev_dependency_changed_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/serve/installs_first_if_source_changed_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 2 3 4 5 chunks +5 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/test/unknown_source_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/validator/dependency_test.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 8 chunks +10 lines, -10 lines 0 comments Download
M sdk/lib/io/io.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/corelib/json_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/dromaeo_noop/dromaeo_smoke.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/xhr_cross_origin_test.dart View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M tests/html/xhr_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/json/json_test.dart View 6 chunks +55 lines, -55 lines 0 comments Download
M tests/language/mixin_prefix_lib.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/debugger/debug_lib.dart View 4 chunks +3 lines, -4 lines 0 comments Download
M tests/standalone/vmservice/test_helper.dart View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/pkg/js/example/twitter/twitter.dart View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/pkg/js/test/js_wrapping/browser_tests.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tools/coverage.dart View 4 chunks +3 lines, -4 lines 0 comments Download
M tools/ddbg.dart View 3 chunks +3 lines, -4 lines 0 comments Download
M tools/dom/src/Isolates.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Window.darttemplate View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/apidoc/apidoc.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/apidoc/mdn/extract.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M utils/apidoc/mdn/postProcess.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M utils/apidoc/mdn/prettyPrint.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/apidoc/mdn/util.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
floitsch
Normally this change should not introduce any semantic changes.
7 years, 3 months ago (2013-08-27 15:48:52 UTC) #1
nweiz
Changes to my libraries lgtm https://codereview.chromium.org/23596007/diff/3001/pkg/yaml/lib/yaml.dart File pkg/yaml/lib/yaml.dart (right): https://codereview.chromium.org/23596007/diff/3001/pkg/yaml/lib/yaml.dart#newcode32 pkg/yaml/lib/yaml.dart:32: /// `stringify` from `dart:json` ...
7 years, 3 months ago (2013-08-27 17:05:01 UTC) #2
Bob Nystrom
Changes to docgen, unittest, pub, and apidoc LGTM.
7 years, 3 months ago (2013-08-27 18:15:53 UTC) #3
Jennifer Messerly
polymer + source_maps LGTM. Thanks!
7 years, 3 months ago (2013-08-27 18:29:28 UTC) #4
floitsch
https://codereview.chromium.org/23596007/diff/3001/pkg/yaml/lib/yaml.dart File pkg/yaml/lib/yaml.dart (right): https://codereview.chromium.org/23596007/diff/3001/pkg/yaml/lib/yaml.dart#newcode32 pkg/yaml/lib/yaml.dart:32: /// `stringify` from `dart:json` instead: On 2013/08/27 17:05:02, nweiz ...
7 years, 3 months ago (2013-08-28 08:26:44 UTC) #5
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/23596007/diff/3001/samples/third_party/dromaeo/tests/dom-modify-html.dart File samples/third_party/dromaeo/tests/dom-modify-html.dart (right): https://codereview.chromium.org/23596007/diff/3001/samples/third_party/dromaeo/tests/dom-modify-html.dart#newcode16 samples/third_party/dromaeo/tests/dom-modify-html.dart:16: str = "$str${new String.fromCharCodes([((25 * random.nextDouble()) + 97).toInt()])}"; ...
7 years, 3 months ago (2013-08-28 09:51:49 UTC) #6
floitsch
@john: please verify that my change to samples/third_party/dromaeo/tests/dom-modify-html.dart is ok. https://codereview.chromium.org/23596007/diff/3001/samples/third_party/dromaeo/tests/dom-modify-html.dart File samples/third_party/dromaeo/tests/dom-modify-html.dart (right): https://codereview.chromium.org/23596007/diff/3001/samples/third_party/dromaeo/tests/dom-modify-html.dart#newcode16 ...
7 years, 3 months ago (2013-08-28 14:01:11 UTC) #7
floitsch
Committed patchset #5 manually as r26789 (presubmit successful).
7 years, 3 months ago (2013-08-28 14:06:47 UTC) #8
Jennifer Messerly
Dromaeo changes look okay to me but not 100% sure, adding Emily for another look.
7 years, 3 months ago (2013-08-28 20:55:34 UTC) #9
Emily Fortuna
https://codereview.chromium.org/23596007/diff/19001/samples/third_party/dromaeo/tests/dom-modify-html.dart File samples/third_party/dromaeo/tests/dom-modify-html.dart (right): https://codereview.chromium.org/23596007/diff/19001/samples/third_party/dromaeo/tests/dom-modify-html.dart#newcode17 samples/third_party/dromaeo/tests/dom-modify-html.dart:17: str += new String.fromCharCode(((25 * random.nextDouble()) + 97).toInt()); Are ...
7 years, 3 months ago (2013-08-28 21:09:54 UTC) #10
floitsch
https://codereview.chromium.org/23596007/diff/19001/samples/third_party/dromaeo/tests/dom-modify-html.dart File samples/third_party/dromaeo/tests/dom-modify-html.dart (right): https://codereview.chromium.org/23596007/diff/19001/samples/third_party/dromaeo/tests/dom-modify-html.dart#newcode17 samples/third_party/dromaeo/tests/dom-modify-html.dart:17: str += new String.fromCharCode(((25 * random.nextDouble()) + 97).toInt()); On ...
7 years, 3 months ago (2013-08-28 21:12:14 UTC) #11
Emily Fortuna
7 years, 3 months ago (2013-08-28 21:19:00 UTC) #12
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/23596007/diff/19001/samples/third_party/droma...
File samples/third_party/dromaeo/tests/dom-modify-html.dart (right):

https://codereview.chromium.org/23596007/diff/19001/samples/third_party/droma...
samples/third_party/dromaeo/tests/dom-modify-html.dart:17: str += new
String.fromCharCode(((25 * random.nextDouble()) + 97).toInt());
On 2013/08/28 21:12:15, floitsch wrote:
> On 2013/08/28 21:09:54, Emily Fortuna wrote:
> > Are these two forms identical, perf-wise? I'm not certain what's going on
> "under
> > the hood"
> 
> The new one could be faster (although I'm not sure we already implemented it).
> If speed is an issue it shouldn't use string-concatenation, but a
string-buffer.

Agreed StringBuffer is the fastest way for sure-- I think they were trying to
keep this test similar to the original JS version so that they could compare
apples-to...almost apples. :-)

Powered by Google App Engine
This is Rietveld 408576698