OLD | NEW |
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 visitor->VisitRuntimeEntry(this); | 298 visitor->VisitRuntimeEntry(this); |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 template<typename StaticVisitor> | 303 template<typename StaticVisitor> |
304 void RelocInfo::Visit(Heap* heap) { | 304 void RelocInfo::Visit(Heap* heap) { |
305 RelocInfo::Mode mode = rmode(); | 305 RelocInfo::Mode mode = rmode(); |
306 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 306 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
307 StaticVisitor::VisitEmbeddedPointer(heap, this); | 307 StaticVisitor::VisitEmbeddedPointer(heap, this); |
308 Assembler::FlushICacheWithoutIsolate(pc_, sizeof(Address)); | 308 Assembler::FlushICache(heap->isolate(), pc_, sizeof(Address)); |
309 } else if (RelocInfo::IsCodeTarget(mode)) { | 309 } else if (RelocInfo::IsCodeTarget(mode)) { |
310 StaticVisitor::VisitCodeTarget(heap, this); | 310 StaticVisitor::VisitCodeTarget(heap, this); |
311 } else if (mode == RelocInfo::CELL) { | 311 } else if (mode == RelocInfo::CELL) { |
312 StaticVisitor::VisitCell(heap, this); | 312 StaticVisitor::VisitCell(heap, this); |
313 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 313 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
314 StaticVisitor::VisitExternalReference(this); | 314 StaticVisitor::VisitExternalReference(this); |
315 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 315 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
316 StaticVisitor::VisitInternalReference(this); | 316 StaticVisitor::VisitInternalReference(this); |
317 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 317 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
318 StaticVisitor::VisitCodeAgeSequence(heap, this); | 318 StaticVisitor::VisitCodeAgeSequence(heap, this); |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 556 |
557 Operand::Operand(Immediate imm) { | 557 Operand::Operand(Immediate imm) { |
558 // [disp/r] | 558 // [disp/r] |
559 set_modrm(0, ebp); | 559 set_modrm(0, ebp); |
560 set_dispr(imm.x_, imm.rmode_); | 560 set_dispr(imm.x_, imm.rmode_); |
561 } | 561 } |
562 } // namespace internal | 562 } // namespace internal |
563 } // namespace v8 | 563 } // namespace v8 |
564 | 564 |
565 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 565 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
OLD | NEW |