OLD | NEW |
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 RUNTIME_VM_STACK_FRAME_H_ | 5 #ifndef RUNTIME_VM_STACK_FRAME_H_ |
6 #define RUNTIME_VM_STACK_FRAME_H_ | 6 #define RUNTIME_VM_STACK_FRAME_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/object.h" | 9 #include "vm/object.h" |
10 #include "vm/stub_code.h" | 10 #include "vm/stub_code.h" |
11 | 11 |
12 #if defined(TARGET_ARCH_IA32) | 12 #if defined(TARGET_ARCH_IA32) |
13 #include "vm/stack_frame_ia32.h" | 13 #include "vm/stack_frame_ia32.h" |
14 #elif defined(TARGET_ARCH_X64) | 14 #elif defined(TARGET_ARCH_X64) |
15 #include "vm/stack_frame_x64.h" | 15 #include "vm/stack_frame_x64.h" |
16 #elif defined(TARGET_ARCH_ARM) | 16 #elif defined(TARGET_ARCH_ARM) |
17 #include "vm/stack_frame_arm.h" | 17 #include "vm/stack_frame_arm.h" |
18 #elif defined(TARGET_ARCH_ARM64) | 18 #elif defined(TARGET_ARCH_ARM64) |
19 #include "vm/stack_frame_arm64.h" | 19 #include "vm/stack_frame_arm64.h" |
20 #elif defined(TARGET_ARCH_MIPS) | |
21 #include "vm/stack_frame_mips.h" | |
22 #elif defined(TARGET_ARCH_DBC) | 20 #elif defined(TARGET_ARCH_DBC) |
23 #include "vm/stack_frame_dbc.h" | 21 #include "vm/stack_frame_dbc.h" |
24 #else | 22 #else |
25 #error Unknown architecture. | 23 #error Unknown architecture. |
26 #endif | 24 #endif |
27 | 25 |
28 namespace dart { | 26 namespace dart { |
29 | 27 |
30 // Forward declarations. | 28 // Forward declarations. |
31 class ObjectPointerVisitor; | 29 class ObjectPointerVisitor; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 | 426 |
429 | 427 |
430 DART_FORCE_INLINE static uword LocalVarAddress(uword fp, intptr_t index) { | 428 DART_FORCE_INLINE static uword LocalVarAddress(uword fp, intptr_t index) { |
431 return fp + LocalVarIndex(0, index) * kWordSize; | 429 return fp + LocalVarIndex(0, index) * kWordSize; |
432 } | 430 } |
433 | 431 |
434 | 432 |
435 } // namespace dart | 433 } // namespace dart |
436 | 434 |
437 #endif // RUNTIME_VM_STACK_FRAME_H_ | 435 #endif // RUNTIME_VM_STACK_FRAME_H_ |
OLD | NEW |