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

Unified Diff: runtime/vm/kernel_reader.h

Issue 2512653002: Merge of source position information from kernel-sdk. (Closed)
Patch Set: Changed how GetTokenLocation was called back to original to fix failing failing tests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_reader.h
diff --git a/runtime/vm/kernel_reader.h b/runtime/vm/kernel_reader.h
index 6b1db8a0033f6550aead615a1fc81128f54dc9f0..a361c141a5cb556da4daab29aa66f5d2d2f136f3 100644
--- a/runtime/vm/kernel_reader.h
+++ b/runtime/vm/kernel_reader.h
@@ -58,6 +58,8 @@ class KernelReader {
: thread_(dart::Thread::Current()),
zone_(thread_->zone()),
isolate_(thread_->isolate()),
+ scripts_(Array::ZoneHandle(zone_)),
+ program_(NULL),
translation_helper_(this, thread_, zone_, isolate_),
type_translator_(&translation_helper_,
&active_class_,
@@ -66,6 +68,9 @@ class KernelReader {
buffer_(buffer),
buffer_length_(len) {}
+ // Returns either pointer to a program or null.
+ Program* ReadPrecompiledProgram();
+
// Returns either a library or a failure object.
dart::Object& ReadProgram();
@@ -89,6 +94,13 @@ class KernelReader {
Procedure* procedure,
Class* kernel_klass = NULL);
+ // If klass's script is not the script at the uri index, return a PatchClass
+ // for klass whose script corresponds to the uri index.
+ // Otherwise return klass.
+ const Object& ClassForScriptAt(const dart::Class& klass,
+ intptr_t source_uri_index);
+ Script& ScriptAt(intptr_t source_uri_index);
+
void GenerateFieldAccessors(const dart::Class& klass,
const dart::Field& field,
Field* kernel_field);
@@ -104,6 +116,8 @@ class KernelReader {
dart::Thread* thread_;
dart::Zone* zone_;
dart::Isolate* isolate_;
+ Array& scripts_;
+ Program* program_;
ActiveClass active_class_;
BuildingTranslationHelper translation_helper_;
DartTypeTranslator type_translator_;
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698