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

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

Issue 1249503002: X87: Debugger: prepare code for debugging on a per-function basis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | no next file » | 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 visitor->VisitCodeTarget(this); 286 visitor->VisitCodeTarget(this);
287 } else if (mode == RelocInfo::CELL) { 287 } else if (mode == RelocInfo::CELL) {
288 visitor->VisitCell(this); 288 visitor->VisitCell(this);
289 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 289 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
290 visitor->VisitExternalReference(this); 290 visitor->VisitExternalReference(this);
291 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 291 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
292 visitor->VisitInternalReference(this); 292 visitor->VisitInternalReference(this);
293 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 293 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
294 visitor->VisitCodeAgeSequence(this); 294 visitor->VisitCodeAgeSequence(this);
295 } else if (RelocInfo::IsDebugBreakSlot(mode) && 295 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
296 IsPatchedDebugBreakSlotSequence() && 296 IsPatchedDebugBreakSlotSequence()) {
297 isolate->debug()->has_break_points()) {
298 visitor->VisitDebugTarget(this); 297 visitor->VisitDebugTarget(this);
299 } else if (IsRuntimeEntry(mode)) { 298 } else if (IsRuntimeEntry(mode)) {
300 visitor->VisitRuntimeEntry(this); 299 visitor->VisitRuntimeEntry(this);
301 } 300 }
302 } 301 }
303 302
304 303
305 template<typename StaticVisitor> 304 template<typename StaticVisitor>
306 void RelocInfo::Visit(Heap* heap) { 305 void RelocInfo::Visit(Heap* heap) {
307 RelocInfo::Mode mode = rmode(); 306 RelocInfo::Mode mode = rmode();
308 if (mode == RelocInfo::EMBEDDED_OBJECT) { 307 if (mode == RelocInfo::EMBEDDED_OBJECT) {
309 StaticVisitor::VisitEmbeddedPointer(heap, this); 308 StaticVisitor::VisitEmbeddedPointer(heap, this);
310 CpuFeatures::FlushICache(pc_, sizeof(Address)); 309 CpuFeatures::FlushICache(pc_, sizeof(Address));
311 } else if (RelocInfo::IsCodeTarget(mode)) { 310 } else if (RelocInfo::IsCodeTarget(mode)) {
312 StaticVisitor::VisitCodeTarget(heap, this); 311 StaticVisitor::VisitCodeTarget(heap, this);
313 } else if (mode == RelocInfo::CELL) { 312 } else if (mode == RelocInfo::CELL) {
314 StaticVisitor::VisitCell(heap, this); 313 StaticVisitor::VisitCell(heap, this);
315 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { 314 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
316 StaticVisitor::VisitExternalReference(this); 315 StaticVisitor::VisitExternalReference(this);
317 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { 316 } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
318 StaticVisitor::VisitInternalReference(this); 317 StaticVisitor::VisitInternalReference(this);
319 } else if (RelocInfo::IsCodeAgeSequence(mode)) { 318 } else if (RelocInfo::IsCodeAgeSequence(mode)) {
320 StaticVisitor::VisitCodeAgeSequence(heap, this); 319 StaticVisitor::VisitCodeAgeSequence(heap, this);
321 } else if (heap->isolate()->debug()->has_break_points() && 320 } else if (RelocInfo::IsDebugBreakSlot(mode) &&
322 RelocInfo::IsDebugBreakSlot(mode) &&
323 IsPatchedDebugBreakSlotSequence()) { 321 IsPatchedDebugBreakSlotSequence()) {
324 StaticVisitor::VisitDebugTarget(heap, this); 322 StaticVisitor::VisitDebugTarget(heap, this);
325 } else if (IsRuntimeEntry(mode)) { 323 } else if (IsRuntimeEntry(mode)) {
326 StaticVisitor::VisitRuntimeEntry(this); 324 StaticVisitor::VisitRuntimeEntry(this);
327 } 325 }
328 } 326 }
329 327
330 328
331 329
332 Immediate::Immediate(int x) { 330 Immediate::Immediate(int x) {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 550
553 551
554 Operand::Operand(Immediate imm) { 552 Operand::Operand(Immediate imm) {
555 // [disp/r] 553 // [disp/r]
556 set_modrm(0, ebp); 554 set_modrm(0, ebp);
557 set_dispr(imm.x_, imm.rmode_); 555 set_dispr(imm.x_, imm.rmode_);
558 } 556 }
559 } } // namespace v8::internal 557 } } // namespace v8::internal
560 558
561 #endif // V8_X87_ASSEMBLER_X87_INL_H_ 559 #endif // V8_X87_ASSEMBLER_X87_INL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698