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

Side by Side Diff: src/assembler.cc

Issue 616843002: Some follow-up fixes to r24322. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | src/objects.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) 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 796
797 void RelocInfo::Print(Isolate* isolate, std::ostream& os) { // NOLINT 797 void RelocInfo::Print(Isolate* isolate, std::ostream& os) { // NOLINT
798 os << static_cast<const void*>(pc_) << " " << RelocModeName(rmode_); 798 os << static_cast<const void*>(pc_) << " " << RelocModeName(rmode_);
799 if (IsComment(rmode_)) { 799 if (IsComment(rmode_)) {
800 os << " (" << reinterpret_cast<char*>(data_) << ")"; 800 os << " (" << reinterpret_cast<char*>(data_) << ")";
801 } else if (rmode_ == EMBEDDED_OBJECT) { 801 } else if (rmode_ == EMBEDDED_OBJECT) {
802 os << " (" << Brief(target_object()) << ")"; 802 os << " (" << Brief(target_object()) << ")";
803 } else if (rmode_ == EXTERNAL_REFERENCE) { 803 } else if (rmode_ == EXTERNAL_REFERENCE) {
804 ExternalReferenceEncoder ref_encoder(isolate); 804 ExternalReferenceEncoder ref_encoder(isolate);
805 os << " (" << ref_encoder.NameOfAddress(target_reference()) << ") (" 805 os << " (" << ref_encoder.NameOfAddress(target_reference()) << ") ("
806 << target_reference() << ")"; 806 << static_cast<const void*>(target_reference()) << ")";
807 } else if (IsCodeTarget(rmode_)) { 807 } else if (IsCodeTarget(rmode_)) {
808 Code* code = Code::GetCodeFromTargetAddress(target_address()); 808 Code* code = Code::GetCodeFromTargetAddress(target_address());
809 os << " (" << Code::Kind2String(code->kind()) << ") (" << target_address() 809 os << " (" << Code::Kind2String(code->kind()) << ") ("
810 << ")"; 810 << static_cast<const void*>(target_address()) << ")";
811 if (rmode_ == CODE_TARGET_WITH_ID) { 811 if (rmode_ == CODE_TARGET_WITH_ID) {
812 os << " (id=" << static_cast<int>(data_) << ")"; 812 os << " (id=" << static_cast<int>(data_) << ")";
813 } 813 }
814 } else if (IsPosition(rmode_)) { 814 } else if (IsPosition(rmode_)) {
815 os << " (" << data() << ")"; 815 os << " (" << data() << ")";
816 } else if (IsRuntimeEntry(rmode_) && 816 } else if (IsRuntimeEntry(rmode_) &&
817 isolate->deoptimizer_data() != NULL) { 817 isolate->deoptimizer_data() != NULL) {
818 // Depotimization bailouts are stored as runtime entries. 818 // Depotimization bailouts are stored as runtime entries.
819 int id = Deoptimizer::GetDeoptimizationId( 819 int id = Deoptimizer::GetDeoptimizationId(
820 isolate, target_address(), Deoptimizer::EAGER); 820 isolate, target_address(), Deoptimizer::EAGER);
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1565 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1566 state_.written_position = state_.current_position; 1566 state_.written_position = state_.current_position;
1567 written = true; 1567 written = true;
1568 } 1568 }
1569 1569
1570 // Return whether something was written. 1570 // Return whether something was written.
1571 return written; 1571 return written;
1572 } 1572 }
1573 1573
1574 } } // namespace v8::internal 1574 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698