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

Side by Side Diff: src/mips64/assembler-mips64-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/mips64/assembler-mips64.h ('k') | src/x64/assembler-x64.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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 host(), this, HeapObject::cast(target_code)); 177 host(), this, HeapObject::cast(target_code));
178 } 178 }
179 } 179 }
180 180
181 181
182 Address Assembler::target_address_from_return_address(Address pc) { 182 Address Assembler::target_address_from_return_address(Address pc) {
183 return pc - kCallTargetAddressOffset; 183 return pc - kCallTargetAddressOffset;
184 } 184 }
185 185
186 186
187 Address Assembler::break_address_from_return_address(Address pc) {
188 return pc - Assembler::kPatchDebugBreakSlotReturnOffset;
189 }
190
191
187 Object* RelocInfo::target_object() { 192 Object* RelocInfo::target_object() {
188 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 193 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
189 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); 194 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_));
190 } 195 }
191 196
192 197
193 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { 198 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
194 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 199 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
195 return Handle<Object>(reinterpret_cast<Object**>( 200 return Handle<Object>(reinterpret_cast<Object**>(
196 Assembler::target_address_at(pc_, host_))); 201 Assembler::target_address_at(pc_, host_)));
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 } 448 }
444 *reinterpret_cast<uint64_t*>(pc_) = x; 449 *reinterpret_cast<uint64_t*>(pc_) = x;
445 pc_ += kInstrSize * 2; 450 pc_ += kInstrSize * 2;
446 CheckTrampolinePoolQuick(); 451 CheckTrampolinePoolQuick();
447 } 452 }
448 453
449 454
450 } } // namespace v8::internal 455 } } // namespace v8::internal
451 456
452 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 457 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698