|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using SymbianStackAlgorithmAccurate.Prologue; |
|
21 using SymbianStructuresLib.Arm.Registers; |
|
22 |
|
23 namespace SymbianStackAlgorithmAccurate.Stack |
|
24 { |
|
25 internal class ArmStackFrame |
|
26 { |
|
27 #region Constructors |
|
28 internal ArmStackFrame( TArmRegisterType aRegister ) |
|
29 { |
|
30 iAssociatedRegister = aRegister; |
|
31 } |
|
32 |
|
33 internal ArmStackFrame( ArmPrologueHelper aPrologEntry ) |
|
34 { |
|
35 iPrologEntry = aPrologEntry; |
|
36 } |
|
37 #endregion |
|
38 |
|
39 #region API |
|
40 #endregion |
|
41 |
|
42 #region Properties |
|
43 public bool IsStackBasedEntry |
|
44 { |
|
45 get { return iAddress != 0; } |
|
46 } |
|
47 |
|
48 public bool IsRegisterBasedEntry |
|
49 { |
|
50 get { return !IsStackBasedEntry; } |
|
51 } |
|
52 |
|
53 public uint Address |
|
54 { |
|
55 get { return iAddress; } |
|
56 set { iAddress = value; } |
|
57 } |
|
58 |
|
59 public uint Data |
|
60 { |
|
61 get { return iData; } |
|
62 set { iData = value; } |
|
63 } |
|
64 |
|
65 public TArmRegisterType AssociatedRegister |
|
66 { |
|
67 get { return iAssociatedRegister; } |
|
68 set { iAssociatedRegister = value; } |
|
69 } |
|
70 #endregion |
|
71 |
|
72 #region Internal properties |
|
73 internal ArmPrologueHelper PrologEntry |
|
74 { |
|
75 get { return iPrologEntry; } |
|
76 } |
|
77 #endregion |
|
78 |
|
79 #region Data members |
|
80 private ArmPrologueHelper iPrologEntry = null; |
|
81 private uint iAddress = 0; |
|
82 private uint iData = 0; |
|
83 private TArmRegisterType iAssociatedRegister = TArmRegisterType.EArmReg_Other; |
|
84 #endregion |
|
85 } |
|
86 } |