OLD | NEW |
(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 |
OLD | NEW |