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

Issue 1870343002: - Refactor Symbol allocation to expect a thread parameter. (Closed)

Created:
4 years, 8 months ago by Ivan Posva
Modified:
4 years, 8 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

- Refactor Symbol allocation to expect a thread parameter. - Preallocate all tokens as symbols to avoid repeated lookups. - Pass thread/zone where useful while doing this change. - Avoid allocating symbols for error messages. BUG= R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/5be5d54529d1f6b2c23dd2adaceb964a7d1fbcb7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+808 lines, -603 lines) Patch
M runtime/lib/mirrors.cc View 4 chunks +21 lines, -21 lines 0 comments Download
M runtime/lib/regexp.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/string.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/ast.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/ast_printer_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/ast_test.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M runtime/vm/ast_transformer.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/bootstrap.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/cha_test.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 8 chunks +22 lines, -17 lines 0 comments Download
M runtime/vm/class_finalizer_test.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator_test.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M runtime/vm/code_patcher_arm64_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_arm_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_ia32_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_mips_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_x64_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/compiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/vm/dart_entry.cc View 4 chunks +12 lines, -11 lines 0 comments Download
M runtime/vm/dart_entry_test.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/exceptions.cc View 4 chunks +9 lines, -5 lines 0 comments Download
M runtime/vm/find_code_object_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flag_list.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 10 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/flow_graph_builder_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/guard_field_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/heap_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/object.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 48 chunks +192 lines, -137 lines 0 comments Download
M runtime/vm/object_id_ring_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object_test.cc View 26 chunks +90 lines, -82 lines 0 comments Download
M runtime/vm/parser.cc View 49 chunks +91 lines, -89 lines 0 comments Download
M runtime/vm/parser_test.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/precompiler.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/regexp.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/regexp.cc View 4 chunks +16 lines, -13 lines 0 comments Download
M runtime/vm/regexp_test.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/report.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M runtime/vm/resolver.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/resolver.cc View 6 chunks +12 lines, -9 lines 0 comments Download
M runtime/vm/resolver_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/runtime_entry.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/scanner.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/scanner.cc View 8 chunks +12 lines, -9 lines 0 comments Download
M runtime/vm/scopes_test.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/service_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/stub_code_arm64_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_arm_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_ia32_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_mips_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_x64_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/symbols.h View 8 chunks +52 lines, -25 lines 0 comments Download
M runtime/vm/symbols.cc View 1 10 chunks +96 lines, -51 lines 0 comments Download
M runtime/vm/unit_test.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Ivan Posva
4 years, 8 months ago (2016-04-09 01:27:25 UTC) #2
Florian Schneider
lgtm https://codereview.chromium.org/1870343002/diff/1/runtime/vm/symbols.cc File runtime/vm/symbols.cc (right): https://codereview.chromium.org/1870343002/diff/1/runtime/vm/symbols.cc#newcode681 runtime/vm/symbols.cc:681: const char* format, va_list args) { Formatting: One ...
4 years, 8 months ago (2016-04-11 22:07:22 UTC) #3
Ivan Posva
Committed patchset #2 (id:20001) manually as 5be5d54529d1f6b2c23dd2adaceb964a7d1fbcb7 (presubmit successful).
4 years, 8 months ago (2016-04-11 23:28:35 UTC) #5
Ivan Posva
4 years, 8 months ago (2016-04-11 23:29:33 UTC) #6
Message was sent while issue was closed.
Thanks! -ip

https://codereview.chromium.org/1870343002/diff/1/runtime/vm/symbols.cc
File runtime/vm/symbols.cc (right):

https://codereview.chromium.org/1870343002/diff/1/runtime/vm/symbols.cc#newco...
runtime/vm/symbols.cc:681: const char* format, va_list args) {
On 2016/04/11 22:07:22, Florian Schneider wrote:
> Formatting: One argument per line

Done.

Powered by Google App Engine
This is Rietveld 408576698