OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 obj->ShortPrint(); | 312 obj->ShortPrint(); |
313 PrintF("\n"); | 313 PrintF("\n"); |
314 #endif | 314 #endif |
315 } else { | 315 } else { |
316 PrintF("%s unrecognized\n", arg1); | 316 PrintF("%s unrecognized\n", arg1); |
317 } | 317 } |
318 } else { | 318 } else { |
319 PrintF("printobject <value>\n"); | 319 PrintF("printobject <value>\n"); |
320 } | 320 } |
321 } else if (strcmp(cmd, "stack") == 0 || strcmp(cmd, "mem") == 0) { | 321 } else if (strcmp(cmd, "stack") == 0 || strcmp(cmd, "mem") == 0) { |
322 | |
323 int32_t* cur = NULL; | 322 int32_t* cur = NULL; |
324 int32_t* end = NULL; | 323 int32_t* end = NULL; |
325 int next_arg = 1; | 324 int next_arg = 1; |
326 | 325 |
327 if (strcmp(cmd, "stack") == 0) { | 326 if (strcmp(cmd, "stack") == 0) { |
328 cur = reinterpret_cast<int32_t*>(sim_->get_register(Simulator::sp)); | 327 cur = reinterpret_cast<int32_t*>(sim_->get_register(Simulator::sp)); |
329 } else { // "mem" | 328 } else { // "mem" |
330 int32_t value; | 329 int32_t value; |
331 if (!GetValue(arg1, &value)) { | 330 if (!GetValue(arg1, &value)) { |
332 PrintF("%s unrecognized\n", arg1); | 331 PrintF("%s unrecognized\n", arg1); |
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2519 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); | 2518 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); |
2520 uintptr_t address = *stack_slot; | 2519 uintptr_t address = *stack_slot; |
2521 set_register(sp, current_sp + sizeof(uintptr_t)); | 2520 set_register(sp, current_sp + sizeof(uintptr_t)); |
2522 return address; | 2521 return address; |
2523 } | 2522 } |
2524 | 2523 |
2525 | 2524 |
2526 } } // namespace assembler::arm | 2525 } } // namespace assembler::arm |
2527 | 2526 |
2528 #endif // !defined(__arm__) | 2527 #endif // !defined(__arm__) |
OLD | NEW |