dart-sdk/pkg
Samir Jindel c31b9a461d [vm/kernel] Reference constants in Dill by offset into constants table.
Summary:

The constants table contains a concatenation of the variable-length encodings of
each constant used in the serialized component. Previously, we referenced the
constants in the code by index into the constants table, which requires reading
potentially the entire constants table to dereference. Now, we refer to the
constant by the binary offset into the constants table, which allows us to peek
into it in constant time.

Test Plan:

The constants table is used by all the precompiler modes, so the new encoding
will inherit the coverage of the existing encoding.

Results from debug and release precompiler bots are available under the
"cl-linux-try" button.

Change-Id: I4782bc0035d0b0cbd5bd6b9d086561ea601286c8
Reviewed-on: https://dart-review.googlesource.com/55470
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2018-05-21 15:54:08 +00:00
..
analysis_server Remove reference to token.previous 2018-05-20 02:33:00 +00:00
analysis_server_client Fix constant-related deprecation warnings in analyzer packages 2018-05-17 21:24:38 +00:00
analyzer Add Forest support for return statements 2018-05-21 13:08:28 +00:00
analyzer_cli Fix constant-related deprecation warnings in analyzer packages 2018-05-17 21:24:38 +00:00
analyzer_plugin Don't create linked groups when nothing was written. 2018-05-18 15:54:29 +00:00
async_helper Stop using a port to keep the isolate alive in async_helper. 2018-05-18 09:33:27 +00:00
compiler [dart2js] Don't try to generate stubs for generator bodies 2018-05-19 06:52:30 +00:00
dart_internal Make warning more warning-y. 2018-03-02 02:04:44 +00:00
dart_messages Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
dev_compiler fix #33103, switch dartdevk to use Kernel nSM stubs 2018-05-18 23:43:58 +00:00
expect Clean up documentation of implicit new/const insertions tests. 2018-04-10 14:49:41 +00:00
front_end Add Forest support for return statements 2018-05-21 13:08:28 +00:00
js Making license files consistent across all packages 2017-09-28 19:33:08 +00:00
js_ast Remove Dart 2 errors in package:js_ast 2018-03-30 11:21:21 +00:00
kernel [vm/kernel] Reference constants in Dill by offset into constants table. 2018-05-21 15:54:08 +00:00
meta Meta CHANGELOG markdown cleanup. 2018-05-03 20:52:40 +00:00
microlytics
sourcemap_testing Use int.tryParse in sourcemap_testing 2018-05-14 13:56:18 +00:00
status_file Revert "Revert "[vm/kernel] Expression execution through Kernel." 2018-05-15 12:03:22 +00:00
telemetry Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
testing [dart:io] Provide modern Dart-styled constants 2018-05-03 17:00:14 +00:00
vm [vm/kernel/bytecode] Support try-catch-finally in bytecode generator 2018-05-20 19:52:07 +00:00
.gitignore
BUILD.gn
pkg.status Enable analyzer testing of pkg in strong mode. 2018-05-16 16:31:42 +00:00