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

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

Issue 1233073005: Debugger: prepare code for debugging on a per-function basis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed 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 | « no previous file | src/arm64/assembler-arm64-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 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 visitor->VisitCodeTarget(this); 329 visitor->VisitCodeTarget(this);
330 } else if (mode == RelocInfo::CELL) { 330 } else if (mode == RelocInfo::CELL) {
331 visitor->VisitCell(this); 331 visitor->VisitCell(this);
332 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 332 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
333 visitor->VisitExternalReference(this); 333 visitor->VisitExternalReference(this);
334 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 334 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
335 visitor->VisitInternalReference(this); 335 visitor->VisitInternalReference(this);
336 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 336 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
337 visitor->VisitCodeAgeSequence(this); 337 visitor->VisitCodeAgeSequence(this);
338 } else if (RelocInfo::IsDebugBreakSlot(mode) && 338 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
339 IsPatchedDebugBreakSlotSequence() && 339 IsPatchedDebugBreakSlotSequence()) {
340 isolate->debug()->has_break_points()) {
341 visitor->VisitDebugTarget(this); 340 visitor->VisitDebugTarget(this);
342 } else if (RelocInfo::IsRuntimeEntry(mode)) { 341 } else if (RelocInfo::IsRuntimeEntry(mode)) {
343 visitor->VisitRuntimeEntry(this); 342 visitor->VisitRuntimeEntry(this);
344 } 343 }
345 } 344 }
346 345
347 346
348 template<typename StaticVisitor> 347 template<typename StaticVisitor>
349 void RelocInfo::Visit(Heap* heap) { 348 void RelocInfo::Visit(Heap* heap) {
350 RelocInfo::Mode mode = rmode(); 349 RelocInfo::Mode mode = rmode();
351 if (mode == RelocInfo::EMBEDDED_OBJECT) { 350 if (mode == RelocInfo::EMBEDDED_OBJECT) {
352 StaticVisitor::VisitEmbeddedPointer(heap, this); 351 StaticVisitor::VisitEmbeddedPointer(heap, this);
353 } else if (RelocInfo::IsCodeTarget(mode)) { 352 } else if (RelocInfo::IsCodeTarget(mode)) {
354 StaticVisitor::VisitCodeTarget(heap, this); 353 StaticVisitor::VisitCodeTarget(heap, this);
355 } else if (mode == RelocInfo::CELL) { 354 } else if (mode == RelocInfo::CELL) {
356 StaticVisitor::VisitCell(heap, this); 355 StaticVisitor::VisitCell(heap, this);
357 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 356 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
358 StaticVisitor::VisitExternalReference(this); 357 StaticVisitor::VisitExternalReference(this);
359 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 358 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
360 StaticVisitor::VisitInternalReference(this); 359 StaticVisitor::VisitInternalReference(this);
361 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 360 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
362 StaticVisitor::VisitCodeAgeSequence(heap, this); 361 StaticVisitor::VisitCodeAgeSequence(heap, this);
363 } else if (heap->isolate()->debug()->has_break_points() && 362 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
364 RelocInfo::IsDebugBreakSlot(mode) &&
365 IsPatchedDebugBreakSlotSequence()) { 363 IsPatchedDebugBreakSlotSequence()) {
366 StaticVisitor::VisitDebugTarget(heap, this); 364 StaticVisitor::VisitDebugTarget(heap, this);
367 } else if (RelocInfo::IsRuntimeEntry(mode)) { 365 } else if (RelocInfo::IsRuntimeEntry(mode)) {
368 StaticVisitor::VisitRuntimeEntry(this); 366 StaticVisitor::VisitRuntimeEntry(this);
369 } 367 }
370 } 368 }
371 369
372 370
373 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) { 371 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) {
374 rm_ = no_reg; 372 rm_ = no_reg;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 662 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
665 CpuFeatures::FlushICache(pc, 4 * kInstrSize); 663 CpuFeatures::FlushICache(pc, 4 * kInstrSize);
666 } 664 }
667 } 665 }
668 } 666 }
669 667
670 668
671 } } // namespace v8::internal 669 } } // namespace v8::internal
672 670
673 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 671 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm64/assembler-arm64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698