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

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

Issue 1233213002: MIPS: Debugger: use debug break slots to break at function exit. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comments. 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/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-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 3048 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 CheckBuffer(); 3059 CheckBuffer();
3060 *reinterpret_cast<uint64_t*>(pc_) = 3060 *reinterpret_cast<uint64_t*>(pc_) =
3061 reinterpret_cast<uint64_t>(stub->instruction_start()); 3061 reinterpret_cast<uint64_t>(stub->instruction_start());
3062 pc_ += sizeof(uint64_t); 3062 pc_ += sizeof(uint64_t);
3063 } 3063 }
3064 3064
3065 3065
3066 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { 3066 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
3067 // We do not try to reuse pool constants. 3067 // We do not try to reuse pool constants.
3068 RelocInfo rinfo(pc_, rmode, data, NULL); 3068 RelocInfo rinfo(pc_, rmode, data, NULL);
3069 if (rmode >= RelocInfo::JS_RETURN && 3069 if (rmode >= RelocInfo::COMMENT &&
3070 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL) { 3070 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL) {
3071 // Adjust code for new modes. 3071 // Adjust code for new modes.
3072 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) 3072 DCHECK(RelocInfo::IsDebugBreakSlot(rmode)
3073 || RelocInfo::IsJSReturn(rmode)
3074 || RelocInfo::IsComment(rmode) 3073 || RelocInfo::IsComment(rmode)
3075 || RelocInfo::IsPosition(rmode)); 3074 || RelocInfo::IsPosition(rmode));
3076 // These modes do not need an entry in the constant pool. 3075 // These modes do not need an entry in the constant pool.
3077 } 3076 }
3078 if (!RelocInfo::IsNone(rinfo.rmode())) { 3077 if (!RelocInfo::IsNone(rinfo.rmode())) {
3079 // Don't record external references unless the heap will be serialized. 3078 // Don't record external references unless the heap will be serialized.
3080 if (rmode == RelocInfo::EXTERNAL_REFERENCE && 3079 if (rmode == RelocInfo::EXTERNAL_REFERENCE &&
3081 !serializer_enabled() && !emit_debug_code()) { 3080 !serializer_enabled() && !emit_debug_code()) {
3082 return; 3081 return;
3083 } 3082 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3241 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3240 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3242 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); 3241 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize);
3243 } 3242 }
3244 } 3243 }
3245 3244
3246 3245
3247 } // namespace internal 3246 } // namespace internal
3248 } // namespace v8 3247 } // namespace v8
3249 3248
3250 #endif // V8_TARGET_ARCH_MIPS64 3249 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698