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

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

Issue 2951473002: Remove enum RelocInfo::CODE_TARGET_WITH_ID. (Closed)
Patch Set: Review update. Created 3 years, 6 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/disassembler.cc ('k') | src/mips64/assembler-mips64.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 3648 matching lines...) Expand 10 before | Expand all | Expand 10 after
3659 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode)); 3659 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode));
3660 // These modes do not need an entry in the constant pool. 3660 // These modes do not need an entry in the constant pool.
3661 } 3661 }
3662 if (!RelocInfo::IsNone(rinfo.rmode())) { 3662 if (!RelocInfo::IsNone(rinfo.rmode())) {
3663 // Don't record external references unless the heap will be serialized. 3663 // Don't record external references unless the heap will be serialized.
3664 if (rmode == RelocInfo::EXTERNAL_REFERENCE && 3664 if (rmode == RelocInfo::EXTERNAL_REFERENCE &&
3665 !serializer_enabled() && !emit_debug_code()) { 3665 !serializer_enabled() && !emit_debug_code()) {
3666 return; 3666 return;
3667 } 3667 }
3668 DCHECK(buffer_space() >= kMaxRelocSize); // Too late to grow buffer here. 3668 DCHECK(buffer_space() >= kMaxRelocSize); // Too late to grow buffer here.
3669 DCHECK(rmode != RelocInfo::CODE_TARGET_WITH_ID);
3670 reloc_info_writer.Write(&rinfo); 3669 reloc_info_writer.Write(&rinfo);
3671 } 3670 }
3672 } 3671 }
3673 3672
3674 3673
3675 void Assembler::BlockTrampolinePoolFor(int instructions) { 3674 void Assembler::BlockTrampolinePoolFor(int instructions) {
3676 CheckTrampolinePoolQuick(instructions); 3675 CheckTrampolinePoolQuick(instructions);
3677 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); 3676 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize);
3678 } 3677 }
3679 3678
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
3839 3838
3840 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3839 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3841 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); 3840 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t));
3842 } 3841 }
3843 } 3842 }
3844 3843
3845 } // namespace internal 3844 } // namespace internal
3846 } // namespace v8 3845 } // namespace v8
3847 3846
3848 #endif // V8_TARGET_ARCH_MIPS 3847 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698