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

Side by Side Diff: src/assembler.cc

Issue 13285: Refactor the convertion of a target address into a code object from the debug... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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 | src/debug.h » ('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) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 } else if (rmode_ == EMBEDDED_OBJECT) { 443 } else if (rmode_ == EMBEDDED_OBJECT) {
444 PrintF(" ("); 444 PrintF(" (");
445 target_object()->ShortPrint(); 445 target_object()->ShortPrint();
446 PrintF(")"); 446 PrintF(")");
447 } else if (rmode_ == EXTERNAL_REFERENCE) { 447 } else if (rmode_ == EXTERNAL_REFERENCE) {
448 ExternalReferenceEncoder ref_encoder; 448 ExternalReferenceEncoder ref_encoder;
449 PrintF(" (%s) (%p)", 449 PrintF(" (%s) (%p)",
450 ref_encoder.NameOfAddress(*target_reference_address()), 450 ref_encoder.NameOfAddress(*target_reference_address()),
451 *target_reference_address()); 451 *target_reference_address());
452 } else if (IsCodeTarget(rmode_)) { 452 } else if (IsCodeTarget(rmode_)) {
453 Code* code = Debug::GetCodeTarget(target_address()); 453 Code* code = Code::GetCodeFromTargetAddress(target_address());
454 PrintF(" (%s) (%p)", Code::Kind2String(code->kind()), target_address()); 454 PrintF(" (%s) (%p)", Code::Kind2String(code->kind()), target_address());
455 } else if (IsPosition(rmode_)) { 455 } else if (IsPosition(rmode_)) {
456 PrintF(" (%d)", data()); 456 PrintF(" (%d)", data());
457 } 457 }
458 458
459 PrintF("\n"); 459 PrintF("\n");
460 } 460 }
461 #endif // ENABLE_DISASSEMBLER 461 #endif // ENABLE_DISASSEMBLER
462 462
463 463
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 ExternalReference ExternalReference::new_space_allocation_limit_address() { 571 ExternalReference ExternalReference::new_space_allocation_limit_address() {
572 return ExternalReference(Heap::NewSpaceAllocationLimitAddress()); 572 return ExternalReference(Heap::NewSpaceAllocationLimitAddress());
573 } 573 }
574 574
575 ExternalReference ExternalReference::debug_step_in_fp_address() { 575 ExternalReference ExternalReference::debug_step_in_fp_address() {
576 return ExternalReference(Debug::step_in_fp_addr()); 576 return ExternalReference(Debug::step_in_fp_addr());
577 } 577 }
578 578
579 } } // namespace v8::internal 579 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698