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

Side by Side Diff: runtime/vm/simulator_mips.cc

Issue 14084006: - Reduce warnings about project settings in Xcode 4. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
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 #include <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_MIPS) 10 #if defined(TARGET_ARCH_MIPS)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return kNoFRegister; 177 return kNoFRegister;
178 } 178 }
179 179
180 180
181 bool SimulatorDebugger::GetValue(char* desc, uint32_t* value) { 181 bool SimulatorDebugger::GetValue(char* desc, uint32_t* value) {
182 Register reg = LookupCpuRegisterByName(desc); 182 Register reg = LookupCpuRegisterByName(desc);
183 if (reg != kNoRegister) { 183 if (reg != kNoRegister) {
184 *value = sim_->get_register(reg); 184 *value = sim_->get_register(reg);
185 return true; 185 return true;
186 } 186 }
187 if ((desc[0] == '*')) { 187 if (desc[0] == '*') {
188 uint32_t addr; 188 uint32_t addr;
189 if (GetValue(desc + 1, &addr)) { 189 if (GetValue(desc + 1, &addr)) {
190 if (Simulator::IsIllegalAddress(addr)) { 190 if (Simulator::IsIllegalAddress(addr)) {
191 return false; 191 return false;
192 } 192 }
193 *value = *(reinterpret_cast<uint32_t*>(addr)); 193 *value = *(reinterpret_cast<uint32_t*>(addr));
194 return true; 194 return true;
195 } 195 }
196 } 196 }
197 if (strcmp("pc", desc) == 0) { 197 if (strcmp("pc", desc) == 0) {
198 *value = sim_->get_pc(); 198 *value = sim_->get_pc();
199 return true; 199 return true;
200 } 200 }
201 bool retval = SScanF(desc, "0x%x", value) == 1; 201 bool retval = SScanF(desc, "0x%x", value) == 1;
202 if (!retval) { 202 if (!retval) {
203 retval = SScanF(desc, "%x", value) == 1; 203 retval = SScanF(desc, "%x", value) == 1;
204 } 204 }
205 return retval; 205 return retval;
206 } 206 }
207 207
208 208
209 bool SimulatorDebugger::GetFValue(char* desc, double* value) { 209 bool SimulatorDebugger::GetFValue(char* desc, double* value) {
210 FRegister freg = LookupFRegisterByName(desc); 210 FRegister freg = LookupFRegisterByName(desc);
211 if (freg != kNoFRegister) { 211 if (freg != kNoFRegister) {
212 *value = sim_->get_fregister(freg); 212 *value = sim_->get_fregister(freg);
213 return true; 213 return true;
214 } 214 }
215 if ((desc[0] == '*')) { 215 if (desc[0] == '*') {
216 uint32_t addr; 216 uint32_t addr;
217 if (GetValue(desc + 1, &addr)) { 217 if (GetValue(desc + 1, &addr)) {
218 if (Simulator::IsIllegalAddress(addr)) { 218 if (Simulator::IsIllegalAddress(addr)) {
219 return false; 219 return false;
220 } 220 }
221 *value = *(reinterpret_cast<float*>(addr)); 221 *value = *(reinterpret_cast<float*>(addr));
222 return true; 222 return true;
223 } 223 }
224 } 224 }
225 return false; 225 return false;
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 1878 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
1879 } 1879 }
1880 buf->Longjmp(); 1880 buf->Longjmp();
1881 } 1881 }
1882 1882
1883 } // namespace dart 1883 } // namespace dart
1884 1884
1885 #endif // !defined(HOST_ARCH_MIPS) 1885 #endif // !defined(HOST_ARCH_MIPS)
1886 1886
1887 #endif // defined TARGET_ARCH_MIPS 1887 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698