OSDN Git Service

art: Refactor RuntimeOptions/ParsedOptions
authorIgor Murashkin <iam@google.com>
Mon, 26 Jan 2015 18:55:53 +0000 (10:55 -0800)
committerIgor Murashkin <iam@google.com>
Wed, 4 Feb 2015 21:29:19 +0000 (13:29 -0800)
commitaaebaa0121be3b9d9f13630585304482cbcaeb4b
tree0f47257e497fdf920c8d703d2d00adab53934a76
parentbabecc483276b46d84cb83d4f01e577228827305
art: Refactor RuntimeOptions/ParsedOptions

Refactor the RuntimeOptions to be a
type-safe map (VariantMap, see runtime_options.h) and the ParsedOptions
to delegate the parsing to CmdlineParser (see cmdline/cmdline_parser.h).

This is the start of a command line parsing refactor, and may include
more in the future (dex2oat, patchoat, etc).

For more details of the command line parsing generator usage see cmdline/README.md

Change-Id: Ic67c6bca5e1f33bf2ec60e2e3ff8c366bab91563
37 files changed:
build/Android.gtest.mk
cmdline/README.md [new file with mode: 0644]
cmdline/cmdline_parse_result.h [new file with mode: 0644]
cmdline/cmdline_parser.h [new file with mode: 0644]
cmdline/cmdline_parser_test.cc [new file with mode: 0644]
cmdline/cmdline_result.h [new file with mode: 0644]
cmdline/cmdline_type_parser.h [new file with mode: 0644]
cmdline/cmdline_types.h [new file with mode: 0644]
cmdline/detail/cmdline_debug_detail.h [new file with mode: 0644]
cmdline/detail/cmdline_parse_argument_detail.h [new file with mode: 0644]
cmdline/detail/cmdline_parser_detail.h [new file with mode: 0644]
cmdline/memory_representation.h [new file with mode: 0644]
cmdline/token_range.h [new file with mode: 0644]
cmdline/unit.h [new file with mode: 0644]
runtime/Android.mk
runtime/base/variant_map.h [new file with mode: 0644]
runtime/base/variant_map_test.cc [new file with mode: 0644]
runtime/common_runtime_test.cc
runtime/common_runtime_test.h
runtime/gc/collector_type.h
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/gc/space/large_object_space.h
runtime/globals.h
runtime/java_vm_ext.cc
runtime/java_vm_ext.h
runtime/jdwp/jdwp.h
runtime/jdwp/jdwp_main.cc
runtime/parsed_options.cc
runtime/parsed_options.h
runtime/parsed_options_test.cc
runtime/runtime.cc
runtime/runtime_options.cc [new file with mode: 0644]
runtime/runtime_options.def [new file with mode: 0644]
runtime/runtime_options.h [new file with mode: 0644]
runtime/trace.cc
runtime/utils.h