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

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

Issue 2810653002: Add a host parameter to ObjectVisitor methods. (Closed)
Patch Set: rebase Created 3 years, 7 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/profiler/heap-snapshot-generator.cc ('k') | src/snapshot/serializer.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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 SKIP_ICACHE_FLUSH); 293 SKIP_ICACHE_FLUSH);
294 } else { 294 } else {
295 Assembler::set_target_address_at(isolate, pc_, host_, NULL); 295 Assembler::set_target_address_at(isolate, pc_, host_, NULL);
296 } 296 }
297 } 297 }
298 298
299 template <typename ObjectVisitor> 299 template <typename ObjectVisitor>
300 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { 300 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) {
301 RelocInfo::Mode mode = rmode(); 301 RelocInfo::Mode mode = rmode();
302 if (mode == RelocInfo::EMBEDDED_OBJECT) { 302 if (mode == RelocInfo::EMBEDDED_OBJECT) {
303 visitor->VisitEmbeddedPointer(this); 303 visitor->VisitEmbeddedPointer(host(), this);
304 } else if (RelocInfo::IsCodeTarget(mode)) { 304 } else if (RelocInfo::IsCodeTarget(mode)) {
305 visitor->VisitCodeTarget(this); 305 visitor->VisitCodeTarget(host(), this);
306 } else if (mode == RelocInfo::CELL) { 306 } else if (mode == RelocInfo::CELL) {
307 visitor->VisitCell(this); 307 visitor->VisitCellPointer(host(), this);
308 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 308 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
309 visitor->VisitExternalReference(this); 309 visitor->VisitExternalReference(host(), this);
310 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 310 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
311 visitor->VisitInternalReference(this); 311 visitor->VisitInternalReference(host(), this);
312 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 312 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
313 visitor->VisitCodeAgeSequence(this); 313 visitor->VisitCodeAgeSequence(host(), this);
314 } else if (RelocInfo::IsDebugBreakSlot(mode) && 314 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
315 IsPatchedDebugBreakSlotSequence()) { 315 IsPatchedDebugBreakSlotSequence()) {
316 visitor->VisitDebugTarget(this); 316 visitor->VisitDebugTarget(host(), this);
317 } else if (IsRuntimeEntry(mode)) { 317 } else if (IsRuntimeEntry(mode)) {
318 visitor->VisitRuntimeEntry(this); 318 visitor->VisitRuntimeEntry(host(), this);
319 } 319 }
320 } 320 }
321 321
322 template <typename StaticVisitor> 322 template <typename StaticVisitor>
323 void RelocInfo::Visit(Heap* heap) { 323 void RelocInfo::Visit(Heap* heap) {
324 RelocInfo::Mode mode = rmode(); 324 RelocInfo::Mode mode = rmode();
325 if (mode == RelocInfo::EMBEDDED_OBJECT) { 325 if (mode == RelocInfo::EMBEDDED_OBJECT) {
326 StaticVisitor::VisitEmbeddedPointer(heap, this); 326 StaticVisitor::VisitEmbeddedPointer(heap, this);
327 } else if (RelocInfo::IsCodeTarget(mode)) { 327 } else if (RelocInfo::IsCodeTarget(mode)) {
328 StaticVisitor::VisitCodeTarget(heap, this); 328 StaticVisitor::VisitCodeTarget(heap, this);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 } 571 }
572 #endif 572 #endif
573 } 573 }
574 if (!patched) UNREACHABLE(); 574 if (!patched) UNREACHABLE();
575 } 575 }
576 576
577 } // namespace internal 577 } // namespace internal
578 } // namespace v8 578 } // namespace v8
579 579
580 #endif // V8_S390_ASSEMBLER_S390_INL_H_ 580 #endif // V8_S390_ASSEMBLER_S390_INL_H_
OLDNEW
« no previous file with comments | « src/profiler/heap-snapshot-generator.cc ('k') | src/snapshot/serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698