|
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 System.IO; |
|
21 using SymbianUtils.BasicTypes; |
|
22 using SymbianStackAlgorithmAccurate.CPU; |
|
23 using SymbianStackAlgorithmAccurate.Prologue; |
|
24 using SymbianStructuresLib.Arm; |
|
25 using SymbianStructuresLib.Arm.Instructions; |
|
26 |
|
27 namespace SymbianStackAlgorithmAccurate.Instructions |
|
28 { |
|
29 internal abstract class AccInstruction |
|
30 { |
|
31 #region Constructors |
|
32 protected AccInstruction( IArmInstruction aInstruction ) |
|
33 { |
|
34 iInstruction = aInstruction; |
|
35 } |
|
36 #endregion |
|
37 |
|
38 #region API |
|
39 internal abstract void Process( ArmPrologueHelper aProlog ); |
|
40 |
|
41 internal virtual void Prefilter( AccInstructionList aInstructions, int aMyIndex, int aInstructionCountOffsetToPC ) |
|
42 { |
|
43 } |
|
44 #endregion |
|
45 |
|
46 #region Properties |
|
47 public IArmInstruction Instruction |
|
48 { |
|
49 get { return iInstruction; } |
|
50 } |
|
51 |
|
52 public bool Ignored |
|
53 { |
|
54 get { return iIgnored; } |
|
55 internal set { iIgnored = value; } |
|
56 } |
|
57 #endregion |
|
58 |
|
59 #region From System.Object |
|
60 public override string ToString() |
|
61 { |
|
62 return iInstruction.ToString(); |
|
63 } |
|
64 #endregion |
|
65 |
|
66 #region Internal methods |
|
67 #endregion |
|
68 |
|
69 #region Data members |
|
70 private readonly IArmInstruction iInstruction; |
|
71 private bool iIgnored = false; |
|
72 #endregion |
|
73 } |
|
74 } |
|
75 |