OLD | NEW |
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 3907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3918 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode)); | 3918 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode)); |
3919 // These modes do not need an entry in the constant pool. | 3919 // These modes do not need an entry in the constant pool. |
3920 } | 3920 } |
3921 if (!RelocInfo::IsNone(rinfo.rmode())) { | 3921 if (!RelocInfo::IsNone(rinfo.rmode())) { |
3922 // Don't record external references unless the heap will be serialized. | 3922 // Don't record external references unless the heap will be serialized. |
3923 if (rmode == RelocInfo::EXTERNAL_REFERENCE && | 3923 if (rmode == RelocInfo::EXTERNAL_REFERENCE && |
3924 !serializer_enabled() && !emit_debug_code()) { | 3924 !serializer_enabled() && !emit_debug_code()) { |
3925 return; | 3925 return; |
3926 } | 3926 } |
3927 DCHECK(buffer_space() >= kMaxRelocSize); // Too late to grow buffer here. | 3927 DCHECK(buffer_space() >= kMaxRelocSize); // Too late to grow buffer here. |
3928 DCHECK(rmode != RelocInfo::CODE_TARGET_WITH_ID); | |
3929 reloc_info_writer.Write(&rinfo); | 3928 reloc_info_writer.Write(&rinfo); |
3930 } | 3929 } |
3931 } | 3930 } |
3932 | 3931 |
3933 | 3932 |
3934 void Assembler::BlockTrampolinePoolFor(int instructions) { | 3933 void Assembler::BlockTrampolinePoolFor(int instructions) { |
3935 CheckTrampolinePoolQuick(instructions); | 3934 CheckTrampolinePoolQuick(instructions); |
3936 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); | 3935 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); |
3937 } | 3936 } |
3938 | 3937 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4076 | 4075 |
4077 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 4076 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
4078 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 4077 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
4079 } | 4078 } |
4080 } | 4079 } |
4081 | 4080 |
4082 } // namespace internal | 4081 } // namespace internal |
4083 } // namespace v8 | 4082 } // namespace v8 |
4084 | 4083 |
4085 #endif // V8_TARGET_ARCH_MIPS64 | 4084 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |