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

Side by Side Diff: src/assembler.cc

Issue 24714004: Thumb2 Backend: Update Code objects with mode, separate Assembler methods for Thumb2 Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/arm/assembler-thumb.cc ('k') | src/objects.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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 rinfo_.pc_ = old_code_age_sequence; 672 rinfo_.pc_ = old_code_age_sequence;
673 return; 673 return;
674 } 674 }
675 } 675 }
676 done_ = true; 676 done_ = true;
677 } 677 }
678 678
679 679
680 RelocIterator::RelocIterator(Code* code, int mode_mask) { 680 RelocIterator::RelocIterator(Code* code, int mode_mask) {
681 rinfo_.host_ = code; 681 rinfo_.host_ = code;
682 rinfo_.pc_ = code->instruction_start(); 682 rinfo_.pc_ = code->entry();
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)) {
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1676 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1677 state_.written_position = state_.current_position; 1677 state_.written_position = state_.current_position;
1678 written = true; 1678 written = true;
1679 } 1679 }
1680 1680
1681 // Return whether something was written. 1681 // Return whether something was written.
1682 return written; 1682 return written;
1683 } 1683 }
1684 1684
1685 } } // namespace v8::internal 1685 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-thumb.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698