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

Side by Side Diff: src/mips/assembler-mips-inl.h

Issue 427863003: Abstract out fetching of break_address in debug mode (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address formatting comment Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.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 1
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. 2 // Copyright (c) 1994-2006 Sun Microsystems Inc.
3 // All Rights Reserved. 3 // All Rights Reserved.
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // - Redistributions of source code must retain the above copyright notice, 9 // - Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer. 10 // this list of conditions and the following disclaimer.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 host(), this, HeapObject::cast(target_code)); 183 host(), this, HeapObject::cast(target_code));
184 } 184 }
185 } 185 }
186 186
187 187
188 Address Assembler::target_address_from_return_address(Address pc) { 188 Address Assembler::target_address_from_return_address(Address pc) {
189 return pc - kCallTargetAddressOffset; 189 return pc - kCallTargetAddressOffset;
190 } 190 }
191 191
192 192
193 Address Assembler::break_address_from_return_address(Address pc) {
194 return pc - Assembler::kPatchDebugBreakSlotReturnOffset;
195 }
196
197
193 Object* RelocInfo::target_object() { 198 Object* RelocInfo::target_object() {
194 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 199 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
195 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); 200 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_));
196 } 201 }
197 202
198 203
199 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { 204 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
200 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 205 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
201 return Handle<Object>(reinterpret_cast<Object**>( 206 return Handle<Object>(reinterpret_cast<Object**>(
202 Assembler::target_address_at(pc_, host_))); 207 Assembler::target_address_at(pc_, host_)));
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 441 }
437 *reinterpret_cast<Instr*>(pc_) = x; 442 *reinterpret_cast<Instr*>(pc_) = x;
438 pc_ += kInstrSize; 443 pc_ += kInstrSize;
439 CheckTrampolinePoolQuick(); 444 CheckTrampolinePoolQuick();
440 } 445 }
441 446
442 447
443 } } // namespace v8::internal 448 } } // namespace v8::internal
444 449
445 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 450 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698