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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 27054002: Add unit tests to cover stack inspect in the presence of closure calls (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 28523)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -360,9 +360,10 @@
ASSERT(dest_frame_ != NULL && dest_frame_is_allocated_);
const Array& dest_array =
Array::Handle(Array::New(dest_frame_size_));
- Instance& obj = Instance::Handle();
+ Object& obj = Object::Handle();
for (intptr_t i = 0; i < dest_frame_size_; i++) {
- obj ^= reinterpret_cast<RawObject*>(dest_frame_[i]);
+ obj = reinterpret_cast<RawObject*>(dest_frame_[i]);
+ ASSERT(obj.IsNull() || obj.IsInstance() || obj.IsContext());
dest_array.SetAt(i, obj);
}
return dest_array.raw();
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698