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

Side by Side Diff: src/arm/simulator-arm.cc

Issue 197006: Fix lint issue. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 done = true; 271 done = true;
272 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) { 272 } else if ((strcmp(cmd, "p") == 0) || (strcmp(cmd, "print") == 0)) {
273 if (args == 2) { 273 if (args == 2) {
274 int32_t value; 274 int32_t value;
275 if (strcmp(arg1, "all") == 0) { 275 if (strcmp(arg1, "all") == 0) {
276 for (int i = 0; i <= 15; i++) { 276 for (int i = 0; i <= 15; i++) {
277 if (GetValue(reg_names[i], &value)) { 277 if (GetValue(reg_names[i], &value)) {
278 if (i <= 10) { 278 if (i <= 10) {
279 PrintF("%3s: 0x%08x %d\n", reg_names[i], value, value); 279 PrintF("%3s: 0x%08x %d\n", reg_names[i], value, value);
280 } else { 280 } else {
281 PrintF("%3s: 0x%08x %d\n", reg_names[15 + 16 - i], value, valu e); 281 PrintF("%3s: 0x%08x %d\n",
282 reg_names[15 + 16 - i],
283 value,
284 value);
282 } 285 }
283 } 286 }
284 } 287 }
285 } else { 288 } else {
286 if (GetValue(arg1, &value)) { 289 if (GetValue(arg1, &value)) {
287 PrintF("%s: 0x%08x %d \n", arg1, value, value); 290 PrintF("%s: 0x%08x %d \n", arg1, value, value);
288 } else { 291 } else {
289 PrintF("%s unrecognized\n", arg1); 292 PrintF("%s unrecognized\n", arg1);
290 } 293 }
291 } 294 }
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 CHECK_EQ(entry_stack, get_register(sp)); 1951 CHECK_EQ(entry_stack, get_register(sp));
1949 set_register(sp, original_stack); 1952 set_register(sp, original_stack);
1950 1953
1951 int32_t result = get_register(r0); 1954 int32_t result = get_register(r0);
1952 return result; 1955 return result;
1953 } 1956 }
1954 1957
1955 } } // namespace assembler::arm 1958 } } // namespace assembler::arm
1956 1959
1957 #endif // !defined(__arm__) 1960 #endif // !defined(__arm__)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698