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

Unified Diff: runtime/vm/kernel_reader.cc

Issue 2861023002: Remove the Kernel setup_builtin_library transformation (Closed)
Patch Set: Created 3 years, 7 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 | « pkg/kernel/lib/target/vm.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_reader.cc
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc
index 61b307f6403f2f96f160b0d0954abf29bdd0843b..127ad32231e35ef54c487ad1b4f35bdcaf4621c6 100644
--- a/runtime/vm/kernel_reader.cc
+++ b/runtime/vm/kernel_reader.cc
@@ -208,9 +208,9 @@ Object& KernelReader::ReadProgram() {
Procedure* procedure =
reinterpret_cast<Procedure*>(to_patch.kernel_function());
- // If dart:_builtin was not compiled from Kernel at all or if it was
- // linked with a script, it does not need to be patched.
- if ((procedure != NULL) && (procedure->function()->body() == NULL)) {
+ // If dart:_builtin was not compiled from Kernel at all it does not need
+ // to be patched.
+ if (procedure != NULL) {
// We will handle the StaticGet specially and will not use the name.
//
// TODO(kmillikin): we are leaking the function body. Find a way to
« no previous file with comments | « pkg/kernel/lib/target/vm.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698