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

Unified Diff: runtime/vm/object.cc

Issue 10579020: Support captured variables in debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('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 8858)
+++ runtime/vm/object.cc (working copy)
@@ -6070,44 +6070,24 @@
}
-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;
-}
-
-
-intptr_t LocalVarDescriptors::GetSlotIndex(intptr_t var_index) const {
- ASSERT(var_index < Length());
- RawLocalVarDescriptors::VarInfo *info = &raw_ptr()->data_[var_index];
- return info->index;
-}
-
-
void LocalVarDescriptors::SetVar(intptr_t var_index,
const String& name,
- intptr_t stack_slot,
- intptr_t scope_id,
- intptr_t begin_pos,
- intptr_t end_pos) const {
+ RawLocalVarDescriptors::VarInfo* info) 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;
+ raw_ptr()->data_[var_index] = *info;
}
+void LocalVarDescriptors::GetInfo(intptr_t var_index,
+ RawLocalVarDescriptors::VarInfo* info) const {
+ ASSERT(var_index < Length());
+ *info = raw_ptr()->data_[var_index];
+}
+
+
const char* LocalVarDescriptors::ToCString() const {
UNIMPLEMENTED();
return "LocalVarDescriptors";
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698