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

Side by Side Diff: runtime/vm/simulator_mips.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/simulator_arm.cc ('k') | runtime/vm/simulator_mips.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 MIPS instructions if we are not generating a native 5 // Declares a Simulator for MIPS instructions if we are not generating a native
6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
7 // on regular desktop machines. 7 // on 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 MIPS HW platform. 10 // on a MIPS HW platform.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Illegal memory access support. 90 // Illegal memory access support.
91 static bool IsIllegalAddress(uword addr) { 91 static bool IsIllegalAddress(uword addr) {
92 return addr < 64*1024; 92 return addr < 64*1024;
93 } 93 }
94 void HandleIllegalAccess(uword addr, Instr* instr); 94 void HandleIllegalAccess(uword addr, Instr* instr);
95 95
96 // Read and write memory. 96 // Read and write memory.
97 void UnalignedAccess(const char* msg, uword addr, Instr* instr); 97 void UnalignedAccess(const char* msg, uword addr, Instr* instr);
98 98
99 // Handles a legal instruction that the simulator does not implement.
100 void UnimplementedInstruction(Instr* instr);
101
99 bool OverflowFrom(int32_t alu_out, 102 bool OverflowFrom(int32_t alu_out,
100 int32_t left, 103 int32_t left,
101 int32_t right, 104 int32_t right,
102 bool addition); 105 bool addition);
103 106
104 void set_pc(uword value) { pc_ = value; } 107 void set_pc(uword value) { pc_ = value; }
105 108
106 void Format(Instr* instr, const char* format); 109 void Format(Instr* instr, const char* format);
107 110
108 inline int8_t ReadB(uword addr); 111 inline int8_t ReadB(uword addr);
(...skipping 12 matching lines...) Expand all
121 124
122 void Execute(); 125 void Execute();
123 void ExecuteDelaySlot(); 126 void ExecuteDelaySlot();
124 127
125 friend class SimulatorDebugger; 128 friend class SimulatorDebugger;
126 }; 129 };
127 130
128 } // namespace dart 131 } // namespace dart
129 132
130 #endif // VM_SIMULATOR_MIPS_H_ 133 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698