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

Side by Side Diff: src/mips/assembler-mips.cc

Issue 1236793010: Version 4.4.63.20 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // fixup_pos. 788 // fixup_pos.
789 Instr instr = instr_at(fixup_pos); 789 Instr instr = instr_at(fixup_pos);
790 if (is_internal) { 790 if (is_internal) {
791 target_at_put(fixup_pos, pos, is_internal); 791 target_at_put(fixup_pos, pos, is_internal);
792 } else if (!is_internal && IsBranch(instr)) { 792 } else if (!is_internal && IsBranch(instr)) {
793 if (dist > kMaxBranchOffset) { 793 if (dist > kMaxBranchOffset) {
794 if (trampoline_pos == kInvalidSlotPos) { 794 if (trampoline_pos == kInvalidSlotPos) {
795 trampoline_pos = get_trampoline_entry(fixup_pos); 795 trampoline_pos = get_trampoline_entry(fixup_pos);
796 CHECK(trampoline_pos != kInvalidSlotPos); 796 CHECK(trampoline_pos != kInvalidSlotPos);
797 } 797 }
798 DCHECK((trampoline_pos - fixup_pos) <= kMaxBranchOffset); 798 CHECK((trampoline_pos - fixup_pos) <= kMaxBranchOffset);
799 target_at_put(fixup_pos, trampoline_pos, false); 799 target_at_put(fixup_pos, trampoline_pos, false);
800 fixup_pos = trampoline_pos; 800 fixup_pos = trampoline_pos;
801 dist = pos - fixup_pos; 801 dist = pos - fixup_pos;
802 } 802 }
803 target_at_put(fixup_pos, pos, false); 803 target_at_put(fixup_pos, pos, false);
804 } else { 804 } else {
805 target_at_put(fixup_pos, pos, false); 805 target_at_put(fixup_pos, pos, false);
806 } 806 }
807 } 807 }
808 L->bind_to(pos); 808 L->bind_to(pos);
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 ClearRecordedAstId(); 2627 ClearRecordedAstId();
2628 reloc_info_writer.Write(&reloc_info_with_ast_id); 2628 reloc_info_writer.Write(&reloc_info_with_ast_id);
2629 } else { 2629 } else {
2630 reloc_info_writer.Write(&rinfo); 2630 reloc_info_writer.Write(&rinfo);
2631 } 2631 }
2632 } 2632 }
2633 } 2633 }
2634 2634
2635 2635
2636 void Assembler::BlockTrampolinePoolFor(int instructions) { 2636 void Assembler::BlockTrampolinePoolFor(int instructions) {
2637 CheckTrampolinePoolQuick(instructions);
2637 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); 2638 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize);
2638 } 2639 }
2639 2640
2640 2641
2641 void Assembler::CheckTrampolinePool() { 2642 void Assembler::CheckTrampolinePool() {
2642 // Some small sequences of instructions must not be broken up by the 2643 // Some small sequences of instructions must not be broken up by the
2643 // insertion of a trampoline pool; such sequences are protected by setting 2644 // insertion of a trampoline pool; such sequences are protected by setting
2644 // either trampoline_pool_blocked_nesting_ or no_trampoline_pool_before_, 2645 // either trampoline_pool_blocked_nesting_ or no_trampoline_pool_before_,
2645 // which are both checked here. Also, recursive calls to CheckTrampolinePool 2646 // which are both checked here. Also, recursive calls to CheckTrampolinePool
2646 // are blocked by trampoline_pool_blocked_nesting_. 2647 // are blocked by trampoline_pool_blocked_nesting_.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2885 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2885 // No out-of-line constant pool support. 2886 // No out-of-line constant pool support.
2886 DCHECK(!FLAG_enable_ool_constant_pool); 2887 DCHECK(!FLAG_enable_ool_constant_pool);
2887 return; 2888 return;
2888 } 2889 }
2889 2890
2890 2891
2891 } } // namespace v8::internal 2892 } } // namespace v8::internal
2892 2893
2893 #endif // V8_TARGET_ARCH_MIPS 2894 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698