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 | 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 360 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
361 IsPatchedDebugBreakSlotSequence()) { | 361 IsPatchedDebugBreakSlotSequence()) { |
362 StaticVisitor::VisitDebugTarget(heap, this); | 362 StaticVisitor::VisitDebugTarget(heap, this); |
363 } else if (IsRuntimeEntry(mode)) { | 363 } else if (IsRuntimeEntry(mode)) { |
364 StaticVisitor::VisitRuntimeEntry(this); | 364 StaticVisitor::VisitRuntimeEntry(this); |
365 } | 365 } |
366 } | 366 } |
367 | 367 |
368 Operand::Operand(intptr_t immediate, RelocInfo::Mode rmode) { | 368 Operand::Operand(intptr_t immediate, RelocInfo::Mode rmode) { |
369 rm_ = no_reg; | 369 rm_ = no_reg; |
370 imm_ = immediate; | 370 value_.immediate = immediate; |
371 rmode_ = rmode; | 371 rmode_ = rmode; |
372 } | 372 } |
373 | 373 |
374 Operand::Operand(const ExternalReference& f) { | 374 Operand::Operand(const ExternalReference& f) { |
375 rm_ = no_reg; | 375 rm_ = no_reg; |
376 imm_ = reinterpret_cast<intptr_t>(f.address()); | 376 value_.immediate = reinterpret_cast<intptr_t>(f.address()); |
377 rmode_ = RelocInfo::EXTERNAL_REFERENCE; | 377 rmode_ = RelocInfo::EXTERNAL_REFERENCE; |
378 } | 378 } |
379 | 379 |
380 Operand::Operand(Smi* value) { | 380 Operand::Operand(Smi* value) { |
381 rm_ = no_reg; | 381 rm_ = no_reg; |
382 imm_ = reinterpret_cast<intptr_t>(value); | 382 value_.immediate = reinterpret_cast<intptr_t>(value); |
383 rmode_ = kRelocInfo_NONEPTR; | 383 rmode_ = kRelocInfo_NONEPTR; |
384 } | 384 } |
385 | 385 |
386 Operand::Operand(Register rm) { | 386 Operand::Operand(Register rm) { |
387 rm_ = rm; | 387 rm_ = rm; |
388 rmode_ = kRelocInfo_NONEPTR; // PPC -why doesn't ARM do this? | 388 rmode_ = kRelocInfo_NONEPTR; // PPC -why doesn't ARM do this? |
389 } | 389 } |
390 | 390 |
391 void Assembler::CheckBuffer() { | 391 void Assembler::CheckBuffer() { |
392 if (buffer_space() <= kGap) { | 392 if (buffer_space() <= kGap) { |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 } | 676 } |
677 #endif | 677 #endif |
678 return; | 678 return; |
679 } | 679 } |
680 UNREACHABLE(); | 680 UNREACHABLE(); |
681 } | 681 } |
682 } // namespace internal | 682 } // namespace internal |
683 } // namespace v8 | 683 } // namespace v8 |
684 | 684 |
685 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ | 685 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ |
OLD | NEW |