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

Side by Side Diff: runtime/vm/object.h

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, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 friend class Code; 1747 friend class Code;
1748 friend class Class; 1748 friend class Class;
1749 }; 1749 };
1750 1750
1751 1751
1752 class LocalVarDescriptors : public Object { 1752 class LocalVarDescriptors : public Object {
1753 public: 1753 public:
1754 intptr_t Length() const; 1754 intptr_t Length() const;
1755 1755
1756 RawString* GetName(intptr_t var_index) const; 1756 RawString* GetName(intptr_t var_index) const;
1757 void GetRange(intptr_t var_index, 1757 void GetScopeInfo(intptr_t var_index,
1758 intptr_t* begin_token_pos, intptr_t* end_token_pos) const; 1758 intptr_t* scope_id,
1759 intptr_t* begin_token_pos,
1760 intptr_t* end_token_pos) const;
1759 intptr_t GetSlotIndex(intptr_t var_index) const; 1761 intptr_t GetSlotIndex(intptr_t var_index) const;
1760 1762
1761 void SetVar(intptr_t var_index, 1763 void SetVar(intptr_t var_index,
1762 const String& name, 1764 const String& name,
1763 intptr_t stack_slot, 1765 intptr_t stack_slot,
1766 intptr_t scope_id,
1764 intptr_t begin_pos, 1767 intptr_t begin_pos,
1765 intptr_t end_pos) const; 1768 intptr_t end_pos) const;
1766 1769
1767 static intptr_t InstanceSize() { 1770 static intptr_t InstanceSize() {
1768 ASSERT(sizeof(RawLocalVarDescriptors) == 1771 ASSERT(sizeof(RawLocalVarDescriptors) ==
1769 OFFSET_OF(RawLocalVarDescriptors, data_)); 1772 OFFSET_OF(RawLocalVarDescriptors, data_));
1770 return 0; 1773 return 0;
1771 } 1774 }
1772 static intptr_t InstanceSize(intptr_t len) { 1775 static intptr_t InstanceSize(intptr_t len) {
1773 return RoundedAllocationSize( 1776 return RoundedAllocationSize(
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
3352 } 3355 }
3353 3356
3354 3357
3355 void Context::SetAt(intptr_t index, const Instance& value) const { 3358 void Context::SetAt(intptr_t index, const Instance& value) const {
3356 StorePointer(InstanceAddr(index), value.raw()); 3359 StorePointer(InstanceAddr(index), value.raw());
3357 } 3360 }
3358 3361
3359 } // namespace dart 3362 } // namespace dart
3360 3363
3361 #endif // VM_OBJECT_H_ 3364 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698