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

Unified Diff: runtime/vm/runtime_entry.cc

Issue 2933983002: Avoid assert fault when using --trace-type-checks (Closed)
Patch Set: Created 3 years, 6 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/runtime_entry.cc
diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
index eb14e4031499a76d0781ea9ef422f75f6b61f8f2..00cc6c6871fc917224a8e4a9145d2e6a722c9699 100644
--- a/runtime/vm/runtime_entry.cc
+++ b/runtime/vm/runtime_entry.cc
@@ -389,7 +389,7 @@ static void PrintTypeCheck(const char* message,
ASSERT(caller_frame != NULL);
const AbstractType& instance_type =
- AbstractType::Handle(instance.GetType(Heap::kNew));
+ AbstractType::Handle(instance.GetType(Heap::kOld));
rmacnak 2017/06/12 23:46:31 We implement Object.runtimeType in terms of Instan
ASSERT(instance_type.IsInstantiated());
if (type.IsInstantiated()) {
OS::PrintErr("%s: '%s' %" Pd " %s '%s' %" Pd " (pc: %#" Px ").\n", message,
« 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