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

Unified Diff: runtime/vm/object.cc

Issue 8983034: Getting value of local variables on stack trace (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 12 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/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 3014)
+++ runtime/vm/object.cc (working copy)
@@ -4610,11 +4610,14 @@
}
-void LocalVarDescriptors::GetRange(intptr_t var_index,
- intptr_t* begin_token_pos,
- intptr_t* end_token_pos) const {
+void LocalVarDescriptors::GetScopeInfo(
+ intptr_t var_index,
+ intptr_t* scope_id,
+ intptr_t* begin_token_pos,
+ intptr_t* end_token_pos) const {
ASSERT(var_index < Length());
RawLocalVarDescriptors::VarInfo *info = &raw_ptr()->data_[var_index];
+ *scope_id = info->scope_id;
*begin_token_pos = info->begin_pos;
*end_token_pos = info->end_pos;
}
@@ -4628,16 +4631,18 @@
void LocalVarDescriptors::SetVar(intptr_t var_index,
- const String& name,
- intptr_t stack_slot,
- intptr_t begin_pos,
- intptr_t end_pos) const {
+ const String& name,
+ intptr_t stack_slot,
+ intptr_t scope_id,
+ intptr_t begin_pos,
+ intptr_t end_pos) const {
ASSERT(var_index < Length());
const Array& names = Array::Handle(raw_ptr()->names_);
ASSERT(Length() == names.Length());
names.SetAt(var_index, name);
RawLocalVarDescriptors::VarInfo *info = &raw_ptr()->data_[var_index];
info->index = stack_slot;
+ info->scope_id = scope_id;
info->begin_pos = begin_pos;
info->end_pos = end_pos;
}
@@ -4645,7 +4650,7 @@
const char* LocalVarDescriptors::ToCString() const {
UNIMPLEMENTED();
- return "";
+ return "LocalVarDescriptors";
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698