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

Side by Side Diff: src/ia32/assembler-ia32-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 | « src/hydrogen.cc ('k') | src/ic/ic.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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 visitor->VisitCodeTarget(this); 285 visitor->VisitCodeTarget(this);
286 } else if (mode == RelocInfo::CELL) { 286 } else if (mode == RelocInfo::CELL) {
287 visitor->VisitCell(this); 287 visitor->VisitCell(this);
288 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 288 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
289 visitor->VisitExternalReference(this); 289 visitor->VisitExternalReference(this);
290 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 290 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
291 visitor->VisitInternalReference(this); 291 visitor->VisitInternalReference(this);
292 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 292 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
293 visitor->VisitCodeAgeSequence(this); 293 visitor->VisitCodeAgeSequence(this);
294 } else if (RelocInfo::IsDebugBreakSlot(mode) && 294 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
295 IsPatchedDebugBreakSlotSequence() && 295 IsPatchedDebugBreakSlotSequence()) {
296 isolate->debug()->has_break_points()) {
297 visitor->VisitDebugTarget(this); 296 visitor->VisitDebugTarget(this);
298 } else if (IsRuntimeEntry(mode)) { 297 } else if (IsRuntimeEntry(mode)) {
299 visitor->VisitRuntimeEntry(this); 298 visitor->VisitRuntimeEntry(this);
300 } 299 }
301 } 300 }
302 301
303 302
304 template<typename StaticVisitor> 303 template<typename StaticVisitor>
305 void RelocInfo::Visit(Heap* heap) { 304 void RelocInfo::Visit(Heap* heap) {
306 RelocInfo::Mode mode = rmode(); 305 RelocInfo::Mode mode = rmode();
307 if (mode == RelocInfo::EMBEDDED_OBJECT) { 306 if (mode == RelocInfo::EMBEDDED_OBJECT) {
308 StaticVisitor::VisitEmbeddedPointer(heap, this); 307 StaticVisitor::VisitEmbeddedPointer(heap, this);
309 CpuFeatures::FlushICache(pc_, sizeof(Address)); 308 CpuFeatures::FlushICache(pc_, sizeof(Address));
310 } else if (RelocInfo::IsCodeTarget(mode)) { 309 } else if (RelocInfo::IsCodeTarget(mode)) {
311 StaticVisitor::VisitCodeTarget(heap, this); 310 StaticVisitor::VisitCodeTarget(heap, this);
312 } else if (mode == RelocInfo::CELL) { 311 } else if (mode == RelocInfo::CELL) {
313 StaticVisitor::VisitCell(heap, this); 312 StaticVisitor::VisitCell(heap, this);
314 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 313 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
315 StaticVisitor::VisitExternalReference(this); 314 StaticVisitor::VisitExternalReference(this);
316 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 315 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
317 StaticVisitor::VisitInternalReference(this); 316 StaticVisitor::VisitInternalReference(this);
318 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 317 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
319 StaticVisitor::VisitCodeAgeSequence(heap, this); 318 StaticVisitor::VisitCodeAgeSequence(heap, this);
320 } else if (heap->isolate()->debug()->has_break_points() && 319 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
321 RelocInfo::IsDebugBreakSlot(mode) &&
322 IsPatchedDebugBreakSlotSequence()) { 320 IsPatchedDebugBreakSlotSequence()) {
323 StaticVisitor::VisitDebugTarget(heap, this); 321 StaticVisitor::VisitDebugTarget(heap, this);
324 } else if (IsRuntimeEntry(mode)) { 322 } else if (IsRuntimeEntry(mode)) {
325 StaticVisitor::VisitRuntimeEntry(this); 323 StaticVisitor::VisitRuntimeEntry(this);
326 } 324 }
327 } 325 }
328 326
329 327
330 328
331 Immediate::Immediate(int x) { 329 Immediate::Immediate(int x) {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 555
558 556
559 Operand::Operand(Immediate imm) { 557 Operand::Operand(Immediate imm) {
560 // [disp/r] 558 // [disp/r]
561 set_modrm(0, ebp); 559 set_modrm(0, ebp);
562 set_dispr(imm.x_, imm.rmode_); 560 set_dispr(imm.x_, imm.rmode_);
563 } 561 }
564 } } // namespace v8::internal 562 } } // namespace v8::internal
565 563
566 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 564 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698