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

Unified Diff: runtime/vm/object.cc

Issue 2157223002: Fix crash looking at a Code object in an AOT program with the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 7bf95a0dbd29193a2ecf3dd639ef4eb369029d49..b19ba7d9b205307402f94f3accd1ff6a35f58d76 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12488,7 +12488,10 @@ const char* ICData::ToCString() const {
RawFunction* ICData::Owner() const {
Object& obj = Object::Handle(raw_ptr()->owner_);
- if (obj.IsFunction()) {
+ if (obj.IsNull()) {
+ ASSERT(Dart::snapshot_kind() == Snapshot::kAppNoJIT);
+ return Function::null();
+ } else if (obj.IsFunction()) {
return Function::Cast(obj).raw();
} else {
ICData& original = ICData::Handle();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698