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

Unified Diff: runtime/vm/parser.cc

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)
Patch Set: Rebased 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 004956688b7c8463f5bd63582f8fb6af59a1202f..a7f0be7f8e29cc274319929821bdc6a69d96b450 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_body()));
kernel_scopes_ = builder.BuildScopes();
}
return kernel_scopes_;
« runtime/vm/kernel_reader.cc ('K') | « 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