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

Side by Side Diff: src/assembler-arm.h

Issue 14886: Bring toiger up to date with bleeding edge 984. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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/api.cc ('k') | src/assembler-ia32.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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 void instr_at_put(int pos, Instr instr) { 671 void instr_at_put(int pos, Instr instr) {
672 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; 672 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
673 } 673 }
674 674
675 // Decode branch instruction at pos and return branch target pos 675 // Decode branch instruction at pos and return branch target pos
676 int target_at(int pos); 676 int target_at(int pos);
677 677
678 // Patch branch instruction at pos to branch to given branch target pos 678 // Patch branch instruction at pos to branch to given branch target pos
679 void target_at_put(int pos, int target_pos); 679 void target_at_put(int pos, int target_pos);
680 680
681 // Check if is time to emit a constant pool for pending reloc info entries
682 void CheckConstPool(bool force_emit, bool require_jump);
683
684 // Block the emission of the constant pool before pc_offset
685 void BlockConstPoolBefore(int pc_offset) {
686 if (no_const_pool_before_ < pc_offset) no_const_pool_before_ = pc_offset;
687 }
688
681 private: 689 private:
682 // Code buffer: 690 // Code buffer:
683 // The buffer into which code and relocation info are generated. 691 // The buffer into which code and relocation info are generated.
684 byte* buffer_; 692 byte* buffer_;
685 int buffer_size_; 693 int buffer_size_;
686 // True if the assembler owns the buffer, false if buffer is external. 694 // True if the assembler owns the buffer, false if buffer is external.
687 bool own_buffer_; 695 bool own_buffer_;
688 696
689 // Buffer size and constant pool distance are checked together at regular 697 // Buffer size and constant pool distance are checked together at regular
690 // intervals of kBufferCheckInterval emitted bytes 698 // intervals of kBufferCheckInterval emitted bytes
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 void addrmod5(Instr instr, CRegister crd, const MemOperand& x); 776 void addrmod5(Instr instr, CRegister crd, const MemOperand& x);
769 777
770 // Labels 778 // Labels
771 void print(Label* L); 779 void print(Label* L);
772 void bind_to(Label* L, int pos); 780 void bind_to(Label* L, int pos);
773 void link_to(Label* L, Label* appendix); 781 void link_to(Label* L, Label* appendix);
774 void next(Label* L); 782 void next(Label* L);
775 783
776 // Record reloc info for current pc_ 784 // Record reloc info for current pc_
777 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); 785 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
778
779 // Check if is time to emit a constant pool for pending reloc info entries
780 void CheckConstPool(bool force_emit, bool require_jump);
781
782 // Block the emission of the constant pool before pc_offset
783 void BlockConstPoolBefore(int pc_offset) {
784 if (no_const_pool_before_ < pc_offset) no_const_pool_before_ = pc_offset;
785 }
786 }; 786 };
787 787
788 } } // namespace v8::internal 788 } } // namespace v8::internal
789 789
790 #endif // V8_ASSEMBLER_ARM_H_ 790 #endif // V8_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698