c237ac8e23
Print constants as JSON in runtime/vm/compiler/offsets_extractor.cc instead of generating C++ declarations. tools/run_offsets_extractor.dart reads JSON and generates C++ declarations (runtime/vm/compiler/runtime_offsets_extracted.h). This would allow us to have different output formats in future (e.g. C++ and Dart). TEST=dart tools/run_offsets_extractor.dart Change-Id: Ib8576766ae8cc21583b5a7b27998fd88b733b3a1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/443140 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>