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

Side by Side Diff: src/assembler.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Reupload due to weird codereview site error Created 7 years, 3 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
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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 rinfo_.pc_ = code->instruction_start(); 682 rinfo_.pc_ = code->instruction_start();
683 rinfo_.data_ = 0; 683 rinfo_.data_ = 0;
684 // Relocation info is read backwards. 684 // Relocation info is read backwards.
685 pos_ = code->relocation_start() + code->relocation_size(); 685 pos_ = code->relocation_start() + code->relocation_size();
686 end_ = code->relocation_start(); 686 end_ = code->relocation_start();
687 done_ = false; 687 done_ = false;
688 mode_mask_ = mode_mask; 688 mode_mask_ = mode_mask;
689 last_id_ = 0; 689 last_id_ = 0;
690 last_position_ = 0; 690 last_position_ = 0;
691 byte* sequence = code->FindCodeAgeSequence(); 691 byte* sequence = code->FindCodeAgeSequence();
692 if (sequence != NULL && !Code::IsYoungSequence(sequence)) { 692 if (sequence != NULL && !Code::IsYoungSequence(sequence) &&
693 !Code::IsPreAgedSequence(sequence)) {
693 code_age_sequence_ = sequence; 694 code_age_sequence_ = sequence;
694 } else { 695 } else {
695 code_age_sequence_ = NULL; 696 code_age_sequence_ = NULL;
696 } 697 }
697 if (mode_mask_ == 0) pos_ = end_; 698 if (mode_mask_ == 0) pos_ = end_;
698 next(); 699 next();
699 } 700 }
700 701
701 702
702 RelocIterator::RelocIterator(const CodeDesc& desc, int mode_mask) { 703 RelocIterator::RelocIterator(const CodeDesc& desc, int mode_mask) {
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1677 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1677 state_.written_position = state_.current_position; 1678 state_.written_position = state_.current_position;
1678 written = true; 1679 written = true;
1679 } 1680 }
1680 1681
1681 // Return whether something was written. 1682 // Return whether something was written.
1682 return written; 1683 return written;
1683 } 1684 }
1684 1685
1685 } } // namespace v8::internal 1686 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698