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

Side by Side Diff: src/assembler.cc

Issue 12702005: Use IsRuntimeEntry for RUNTIME_ENTRY comparison (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 9 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 | « src/assembler.h ('k') | src/disassembler.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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 *target_reference_address()); 804 *target_reference_address());
805 } else if (IsCodeTarget(rmode_)) { 805 } else if (IsCodeTarget(rmode_)) {
806 Code* code = Code::GetCodeFromTargetAddress(target_address()); 806 Code* code = Code::GetCodeFromTargetAddress(target_address());
807 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), 807 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()),
808 target_address()); 808 target_address());
809 if (rmode_ == CODE_TARGET_WITH_ID) { 809 if (rmode_ == CODE_TARGET_WITH_ID) {
810 PrintF(" (id=%d)", static_cast<int>(data_)); 810 PrintF(" (id=%d)", static_cast<int>(data_));
811 } 811 }
812 } else if (IsPosition(rmode_)) { 812 } else if (IsPosition(rmode_)) {
813 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); 813 PrintF(out, " (%" V8_PTR_PREFIX "d)", data());
814 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY && 814 } else if (IsRuntimeEntry(rmode_) &&
815 Isolate::Current()->deoptimizer_data() != NULL) { 815 Isolate::Current()->deoptimizer_data() != NULL) {
816 // Depotimization bailouts are stored as runtime entries. 816 // Depotimization bailouts are stored as runtime entries.
817 int id = Deoptimizer::GetDeoptimizationId( 817 int id = Deoptimizer::GetDeoptimizationId(
818 target_address(), Deoptimizer::EAGER); 818 target_address(), Deoptimizer::EAGER);
819 if (id != Deoptimizer::kNotDeoptimizationEntry) { 819 if (id != Deoptimizer::kNotDeoptimizationEntry) {
820 PrintF(out, " (deoptimization bailout %d)", id); 820 PrintF(out, " (deoptimization bailout %d)", id);
821 } 821 }
822 } 822 }
823 823
824 PrintF(out, "\n"); 824 PrintF(out, "\n");
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1637 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1638 state_.written_position = state_.current_position; 1638 state_.written_position = state_.current_position;
1639 written = true; 1639 written = true;
1640 } 1640 }
1641 1641
1642 // Return whether something was written. 1642 // Return whether something was written.
1643 return written; 1643 return written;
1644 } 1644 }
1645 1645
1646 } } // namespace v8::internal 1646 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698