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

Side by Side Diff: src/assembler.cc

Issue 6815007: Fix --print-code-stubs during VM initialization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 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/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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 ExternalReferenceEncoder ref_encoder; 485 ExternalReferenceEncoder ref_encoder;
486 PrintF(out, " (%s) (%p)", 486 PrintF(out, " (%s) (%p)",
487 ref_encoder.NameOfAddress(*target_reference_address()), 487 ref_encoder.NameOfAddress(*target_reference_address()),
488 *target_reference_address()); 488 *target_reference_address());
489 } else if (IsCodeTarget(rmode_)) { 489 } else if (IsCodeTarget(rmode_)) {
490 Code* code = Code::GetCodeFromTargetAddress(target_address()); 490 Code* code = Code::GetCodeFromTargetAddress(target_address());
491 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), 491 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()),
492 target_address()); 492 target_address());
493 } else if (IsPosition(rmode_)) { 493 } else if (IsPosition(rmode_)) {
494 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); 494 PrintF(out, " (%" V8_PTR_PREFIX "d)", data());
495 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY) { 495 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY &&
496 Isolate::Current()->deoptimizer_data() != NULL) {
496 // Depotimization bailouts are stored as runtime entries. 497 // Depotimization bailouts are stored as runtime entries.
497 int id = Deoptimizer::GetDeoptimizationId( 498 int id = Deoptimizer::GetDeoptimizationId(
498 target_address(), Deoptimizer::EAGER); 499 target_address(), Deoptimizer::EAGER);
499 if (id != Deoptimizer::kNotDeoptimizationEntry) { 500 if (id != Deoptimizer::kNotDeoptimizationEntry) {
500 PrintF(out, " (deoptimization bailout %d)", id); 501 PrintF(out, " (deoptimization bailout %d)", id);
501 } 502 }
502 } 503 }
503 504
504 PrintF(out, "\n"); 505 PrintF(out, "\n");
505 } 506 }
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1059 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1059 state_.written_position = state_.current_position; 1060 state_.written_position = state_.current_position;
1060 written = true; 1061 written = true;
1061 } 1062 }
1062 1063
1063 // Return whether something was written. 1064 // Return whether something was written.
1064 return written; 1065 return written;
1065 } 1066 }
1066 1067
1067 } } // namespace v8::internal 1068 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698