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

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 9 years 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_arm.cc ('k') | runtime/vm/debugger_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace dart {
17
18 // TODO(hausner): Handle captured variables.
19 RawInstance* ActivationFrame::GetLocalVarValue(intptr_t slot_index) {
20 uword var_address = fp() + slot_index * kWordSize;
21 return reinterpret_cast<RawInstance*>(
22 *reinterpret_cast<uword*>(var_address));
23 }
24
25 } // namespace dart
26
27 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/debugger_arm.cc ('k') | runtime/vm/debugger_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698