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

Unified Diff: runtime/vm/parser.cc

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)
Patch Set: Review comments Created 3 years, 4 months 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/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 557e69d5b588f7a53e136658456b4cc75a5471d0..b18c4fda87d1d1f08306b059046bd05ce0faa5a7 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -227,10 +227,9 @@ void ParsedFunction::Bailout(const char* origin, const char* reason) const {
kernel::ScopeBuildingResult* ParsedFunction::EnsureKernelScopes() {
if (kernel_scopes_ == NULL) {
- intptr_t kernel_offset = function().kernel_offset();
- Script& script = Script::Handle(Z, function().script());
kernel::StreamingScopeBuilder builder(
- this, kernel_offset, script.kernel_data(), script.kernel_data_size());
+ this, function().kernel_offset(),
+ TypedData::Handle(Z, function().kernel_data()));
kernel_scopes_ = builder.BuildScopes();
}
return kernel_scopes_;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698