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

Side by Side Diff: runtime/vm/debugger_ia32.cc

Issue 9019029: Retrieve value of local variables in stack frames. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32)
7
8 #include "vm/debugger.h"
9
10 #include "vm/code_patcher.h"
11 #include "vm/object.h"
12 #include "vm/os.h"
13 #include "vm/stack_frame.h"
14 #include "vm/stub_code.h"
15
16
siva 2011/12/22 00:04:28 extra blank line?
hausner 2011/12/22 00:15:32 Done.
17 namespace dart {
18
19
siva 2011/12/22 00:04:28 extra blank line?
hausner 2011/12/22 00:15:32 Done.
20 // TODO(hausner): Handle captured variables.
21 RawInstance* ActivationFrame::GetLocalVarValue(intptr_t slot_index) {
22 uword var_address = fp() + slot_index * kWordSize;
23 return reinterpret_cast<RawInstance*>(
24 *reinterpret_cast<uword*>(var_address));
25 }
26
27
siva 2011/12/22 00:04:28 Ditto.
hausner 2011/12/22 00:15:32 Done.
28 } // namespace dart
29
30 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698