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

Side by Side Diff: runtime/vm/simulator_arm.h

Issue 12903006: Drops into Simulator Debugger only in a session that is already interactive. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months 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/disassembler_x64.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Declares a Simulator for ARM instructions if we are not generating a native 5 // Declares a Simulator for ARM instructions if we are not generating a native
6 // ARM binary. This Simulator allows us to run and debug ARM code generation on 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on
7 // regular desktop machines. 7 // regular desktop machines.
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, 8 // Dart calls into generated code by "calling" the InvokeDartCode stub,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a ARM HW platform. 10 // on a ARM HW platform.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Registered breakpoints. 123 // Registered breakpoints.
124 Instr* break_pc_; 124 Instr* break_pc_;
125 int32_t break_instr_; 125 int32_t break_instr_;
126 126
127 // Illegal memory access support. 127 // Illegal memory access support.
128 static bool IsIllegalAddress(uword addr) { 128 static bool IsIllegalAddress(uword addr) {
129 return addr < 64*1024; 129 return addr < 64*1024;
130 } 130 }
131 void HandleIllegalAccess(uword addr, Instr* instr); 131 void HandleIllegalAccess(uword addr, Instr* instr);
132 132
133 // Handles a legal instruction that the simulator does not implement.
134 void UnimplementedInstruction(Instr* instr);
135
133 // Unsupported instructions use Format to print an error and stop execution. 136 // Unsupported instructions use Format to print an error and stop execution.
134 void Format(Instr* instr, const char* format); 137 void Format(Instr* instr, const char* format);
135 138
136 // Checks if the current instruction should be executed based on its 139 // Checks if the current instruction should be executed based on its
137 // condition bits. 140 // condition bits.
138 bool ConditionallyExecute(Instr* instr); 141 bool ConditionallyExecute(Instr* instr);
139 142
140 // Helper functions to set the conditional flags in the architecture state. 143 // Helper functions to set the conditional flags in the architecture state.
141 void SetNZFlags(int32_t val); 144 void SetNZFlags(int32_t val);
142 void SetCFlag(bool val); 145 void SetCFlag(bool val);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 228 }
226 229
227 friend class SimulatorDebugger; 230 friend class SimulatorDebugger;
228 friend class SimulatorSetjmpBuffer; 231 friend class SimulatorSetjmpBuffer;
229 DISALLOW_COPY_AND_ASSIGN(Simulator); 232 DISALLOW_COPY_AND_ASSIGN(Simulator);
230 }; 233 };
231 234
232 } // namespace dart 235 } // namespace dart
233 236
234 #endif // VM_SIMULATOR_ARM_H_ 237 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_x64.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698