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

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

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 years, 8 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/arm/assembler-arm.cc ('k') | src/arm/builtins-arm.cc » ('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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 if (mode == RelocInfo::EMBEDDED_OBJECT) { 316 if (mode == RelocInfo::EMBEDDED_OBJECT) {
317 visitor->VisitEmbeddedPointer(this); 317 visitor->VisitEmbeddedPointer(this);
318 } else if (RelocInfo::IsCodeTarget(mode)) { 318 } else if (RelocInfo::IsCodeTarget(mode)) {
319 visitor->VisitCodeTarget(this); 319 visitor->VisitCodeTarget(this);
320 } else if (mode == RelocInfo::CELL) { 320 } else if (mode == RelocInfo::CELL) {
321 visitor->VisitCell(this); 321 visitor->VisitCell(this);
322 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 322 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
323 visitor->VisitExternalReference(this); 323 visitor->VisitExternalReference(this);
324 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 324 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
325 visitor->VisitCodeAgeSequence(this); 325 visitor->VisitCodeAgeSequence(this);
326 #ifdef ENABLE_DEBUGGER_SUPPORT
327 } else if (((RelocInfo::IsJSReturn(mode) && 326 } else if (((RelocInfo::IsJSReturn(mode) &&
328 IsPatchedReturnSequence()) || 327 IsPatchedReturnSequence()) ||
329 (RelocInfo::IsDebugBreakSlot(mode) && 328 (RelocInfo::IsDebugBreakSlot(mode) &&
330 IsPatchedDebugBreakSlotSequence())) && 329 IsPatchedDebugBreakSlotSequence())) &&
331 isolate->debug()->has_break_points()) { 330 isolate->debug()->has_break_points()) {
332 visitor->VisitDebugTarget(this); 331 visitor->VisitDebugTarget(this);
333 #endif
334 } else if (RelocInfo::IsRuntimeEntry(mode)) { 332 } else if (RelocInfo::IsRuntimeEntry(mode)) {
335 visitor->VisitRuntimeEntry(this); 333 visitor->VisitRuntimeEntry(this);
336 } 334 }
337 } 335 }
338 336
339 337
340 template<typename StaticVisitor> 338 template<typename StaticVisitor>
341 void RelocInfo::Visit(Heap* heap) { 339 void RelocInfo::Visit(Heap* heap) {
342 RelocInfo::Mode mode = rmode(); 340 RelocInfo::Mode mode = rmode();
343 if (mode == RelocInfo::EMBEDDED_OBJECT) { 341 if (mode == RelocInfo::EMBEDDED_OBJECT) {
344 StaticVisitor::VisitEmbeddedPointer(heap, this); 342 StaticVisitor::VisitEmbeddedPointer(heap, this);
345 } else if (RelocInfo::IsCodeTarget(mode)) { 343 } else if (RelocInfo::IsCodeTarget(mode)) {
346 StaticVisitor::VisitCodeTarget(heap, this); 344 StaticVisitor::VisitCodeTarget(heap, this);
347 } else if (mode == RelocInfo::CELL) { 345 } else if (mode == RelocInfo::CELL) {
348 StaticVisitor::VisitCell(heap, this); 346 StaticVisitor::VisitCell(heap, this);
349 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 347 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
350 StaticVisitor::VisitExternalReference(this); 348 StaticVisitor::VisitExternalReference(this);
351 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 349 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
352 StaticVisitor::VisitCodeAgeSequence(heap, this); 350 StaticVisitor::VisitCodeAgeSequence(heap, this);
353 #ifdef ENABLE_DEBUGGER_SUPPORT
354 } else if (heap->isolate()->debug()->has_break_points() && 351 } else if (heap->isolate()->debug()->has_break_points() &&
355 ((RelocInfo::IsJSReturn(mode) && 352 ((RelocInfo::IsJSReturn(mode) &&
356 IsPatchedReturnSequence()) || 353 IsPatchedReturnSequence()) ||
357 (RelocInfo::IsDebugBreakSlot(mode) && 354 (RelocInfo::IsDebugBreakSlot(mode) &&
358 IsPatchedDebugBreakSlotSequence()))) { 355 IsPatchedDebugBreakSlotSequence()))) {
359 StaticVisitor::VisitDebugTarget(heap, this); 356 StaticVisitor::VisitDebugTarget(heap, this);
360 #endif
361 } else if (RelocInfo::IsRuntimeEntry(mode)) { 357 } else if (RelocInfo::IsRuntimeEntry(mode)) {
362 StaticVisitor::VisitRuntimeEntry(this); 358 StaticVisitor::VisitRuntimeEntry(this);
363 } 359 }
364 } 360 }
365 361
366 362
367 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) { 363 Operand::Operand(int32_t immediate, RelocInfo::Mode rmode) {
368 rm_ = no_reg; 364 rm_ = no_reg;
369 imm32_ = immediate; 365 imm32_ = immediate;
370 rmode_ = rmode; 366 rmode_ = rmode;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // ldr ip, [pc, #...] 536 // ldr ip, [pc, #...]
541 // since the instruction accessing this address in the constant pool remains 537 // since the instruction accessing this address in the constant pool remains
542 // unchanged. 538 // unchanged.
543 } 539 }
544 } 540 }
545 541
546 542
547 } } // namespace v8::internal 543 } } // namespace v8::internal
548 544
549 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 545 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698